Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)