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

@ -4,7 +4,7 @@
*
* Declarations for backend/utils/misc/ps_status.c
*
* $PostgreSQL: pgsql/src/include/utils/ps_status.h,v 1.26 2005/11/05 03:04:53 tgl Exp $
* $PostgreSQL: pgsql/src/include/utils/ps_status.h,v 1.27 2006/06/27 22:16:44 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -12,12 +12,14 @@
#ifndef PS_STATUS_H
#define PS_STATUS_H
extern bool update_process_title;
extern char **save_ps_display_args(int argc, char **argv);
extern void init_ps_display(const char *username, const char *dbname,
const char *host_info);
const char *host_info, const char *initial_str);
extern void set_ps_display(const char *activity);
extern void set_ps_display(const char *activity, bool force);
extern const char *get_ps_display(int *displen);