projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33c44b2
)
Add pid to the pgident event name on win32.
author
Magnus Hagander
<
[email protected]
>
Thu, 31 Jan 2008 09:21:22 +0000
(09:21 +0000)
committer
Magnus Hagander
<
[email protected]
>
Thu, 31 Jan 2008 09:21:22 +0000
(09:21 +0000)
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.
src/backend/utils/misc/ps_status.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/misc/ps_status.c
b/src/backend/utils/misc/ps_status.c
index 337bab9f1686024e70b0df9aa3ffef1f4c98db19..b7fdf4f020704e5405cfed7dcf694817dbf430db 100644
(file)
--- a/
src/backend/utils/misc/ps_status.c
+++ b/
src/backend/utils/misc/ps_status.c
@@
-346,7
+346,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);
}