diff options
author | Magnus Hagander <magnus@hagander.net> | 2008-01-31 09:21:17 +0000 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2008-01-31 09:21:17 +0000 |
commit | 0ace923ce8bd87b4f0b4d17ec08bf6f957f32a8d (patch) | |
tree | e8c37c24f77a7dd16cdf7d5b19a6d22639050081 | |
parent | 0a4ef62bf883f72b5e9ac50b979691c1ab55f644 (diff) | |
download | postgresql-0ace923ce8bd87b4f0b4d17ec08bf6f957f32a8d.tar.gz postgresql-0ace923ce8bd87b4f0b4d17ec08bf6f957f32a8d.zip |
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.
-rw-r--r-- | src/backend/utils/misc/ps_status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/misc/ps_status.c b/src/backend/utils/misc/ps_status.c index c03f5328a9d..8677d0a4024 100644 --- a/src/backend/utils/misc/ps_status.c +++ b/src/backend/utils/misc/ps_status.c @@ -5,7 +5,7 @@ * to contain some useful information. Mechanism differs wildly across * platforms. * - * $PostgreSQL: pgsql/src/backend/utils/misc/ps_status.c,v 1.37 2008/01/01 19:45:54 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/misc/ps_status.c,v 1.38 2008/01/31 09:21:17 mha Exp $ * * Copyright (c) 2000-2008, PostgreSQL Global Development Group * various details abducted from various places @@ -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); } |