Skip to content

Commit 0ace923

Browse files
committed
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.
1 parent 0a4ef62 commit 0ace923

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/misc/ps_status.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* to contain some useful information. Mechanism differs wildly across
66
* platforms.
77
*
8-
* $PostgreSQL: pgsql/src/backend/utils/misc/ps_status.c,v 1.37 2008/01/01 19:45:54 momjian Exp $
8+
* $PostgreSQL: pgsql/src/backend/utils/misc/ps_status.c,v 1.38 2008/01/31 09:21:17 mha Exp $
99
*
1010
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
1111
* various details abducted from various places
@@ -350,7 +350,7 @@ set_ps_display(const char *activity, bool force)
350350
if (ident_handle != INVALID_HANDLE_VALUE)
351351
CloseHandle(ident_handle);
352352

353-
sprintf(name, "pgident: %s", ps_buffer);
353+
sprintf(name, "pgident(%d): %s", MyProcPid, ps_buffer);
354354

355355
ident_handle = CreateEvent(NULL, TRUE, FALSE, name);
356356
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy