diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-06-27 22:16:44 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-06-27 22:16:44 +0000 |
commit | 370a709c75becffba230a3fa14747a134b7d55b4 (patch) | |
tree | 87637e2543c307e08a19ae57a5022b7b6299b263 /src/backend/utils/misc/guc.c | |
parent | 69d0a15e2aa15a2ee851df33f5c15fa227c47bd7 (diff) |
Add GUC update_process_title to control whether 'ps' display is updated
for every command, default to on.
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r-- | src/backend/utils/misc/guc.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 72041bbef7e..9863696e1fb 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -10,7 +10,7 @@ * Written by Peter Eisentraut <peter_e@gmx.net>. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.323 2006/06/27 19:07:50 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.324 2006/06/27 22:16:44 momjian Exp $ * *-------------------------------------------------------------------- */ @@ -64,6 +64,7 @@ #include "utils/builtins.h" #include "utils/memutils.h" #include "utils/pg_locale.h" +#include "utils/ps_status.h" #include "pgstat.h" #include "access/gin.h" @@ -729,6 +730,16 @@ static struct config_bool ConfigureNamesBool[] = }, { + {"update_process_title", PGC_SUSET, STATS_COLLECTOR, + gettext_noop("Updates the process title to show the active SQL command."), + gettext_noop("Enables updating of the process title every time a new + SQL command is received by the server.") + }, + &update_process_title, + true, NULL, NULL + }, + + { {"autovacuum", PGC_SIGHUP, AUTOVACUUM, gettext_noop("Starts the autovacuum subprocess."), NULL |