Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ace923

Browse files
committed
Add pid to the pgident event name on win32.
Should fix a problem where two clusters are running undertwo different service accounts and get colliding names,causing only the first cluster to contain the pgidentevent description.Per report from Stephen Denne.
1 parent0a4ef62 commit0ace923

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)

[8]ページ先頭

©2009-2025 Movatter.jp