From: Magnus Hagander Date: Thu, 31 Jan 2008 09:21:22 +0000 (+0000) Subject: Add pid to the pgident event name on win32. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=47159d370ec1539a23da20b0b94d410c9dbca235;p=users%2Fbernd%2Fpostgres.git Add pid to the pgident event name on win32. Should fix a problem where two clusters are running under two different service accounts and get colliding names, causing only the first cluster to contain the pgident event description. Per report from Stephen Denne. --- diff --git a/src/backend/utils/misc/ps_status.c b/src/backend/utils/misc/ps_status.c index 3e1d24cfd5..ba602cafd9 100644 --- a/src/backend/utils/misc/ps_status.c +++ b/src/backend/utils/misc/ps_status.c @@ -350,7 +350,7 @@ set_ps_display(const char *activity, bool force) if (ident_handle != INVALID_HANDLE_VALUE) CloseHandle(ident_handle); - sprintf(name, "pgident: %s", ps_buffer); + sprintf(name, "pgident(%d): %s", MyProcPid, ps_buffer); ident_handle = CreateEvent(NULL, TRUE, FALSE, name); }