1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-07 00:36:50 +03:00

Add GUC update_process_title to control whether 'ps' display is updated

for every command, default to on.
This commit is contained in:
Bruce Momjian
2006-06-27 22:16:44 +00:00
parent 69d0a15e2a
commit 370a709c75
14 changed files with 89 additions and 52 deletions

View File

@ -13,7 +13,7 @@
*
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.131 2006/06/27 03:45:16 alvherre Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.132 2006/06/27 22:16:43 momjian Exp $
* ----------
*/
#include "postgres.h"
@ -1743,8 +1743,7 @@ PgstatCollectorMain(int argc, char *argv[])
/*
* Identify myself via ps
*/
init_ps_display("stats collector process", "", "");
set_ps_display("");
init_ps_display("stats collector process", "", "", "");
/*
* Arrange to write the initial status file right away
@ -1975,8 +1974,7 @@ pgstat_recvbuffer(void)
/*
* Identify myself via ps
*/
init_ps_display("stats buffer process", "", "");
set_ps_display("");
init_ps_display("stats buffer process", "", "", "");
/*
* We want to die if our child collector process does. There are two ways