mirror of
https://github.com/postgres/postgres.git
synced 2026-03-16 15:43:31 -04:00
This is similar to 7d25958, and this commit takes care of all the
remaining inconsistencies between the initial value used in the C
variable associated to a GUC and its default value stored in the GUC
tables (as of pg_settings.boot_val).
Some of the initial values of the GUCs updated rely on a compile-time
default. These are refactored so as the GUC table and its C declaration
use the same values. This makes everything consistent with other
places, backend_flush_after, bgwriter_flush_after, port,
checkpoint_flush_after doing so already, for example.
Extracted from a larger patch by Peter Smith. The spots updated in the
modules are from me.
Author: Peter Smith, Michael Paquier
Reviewed-by: Nathan Bossart, Tom Lane, Justin Pryzby
Discussion: https://postgr.es/m/CAHut+PtHE0XSfjjRQ6D4v7+dqzCw=d+1a64ujra4EX8aoc_Z+w@mail.gmail.com
32 lines
787 B
C
32 lines
787 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* ps_status.h
|
|
*
|
|
* Declarations for backend/utils/misc/ps_status.c
|
|
*
|
|
* src/include/utils/ps_status.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef PS_STATUS_H
|
|
#define PS_STATUS_H
|
|
|
|
/* disabled on Windows as the performance overhead can be significant */
|
|
#ifdef WIN32
|
|
#define DEFAULT_UPDATE_PROCESS_TITLE false
|
|
#else
|
|
#define DEFAULT_UPDATE_PROCESS_TITLE true
|
|
#endif
|
|
|
|
extern PGDLLIMPORT bool update_process_title;
|
|
|
|
extern char **save_ps_display_args(int argc, char **argv);
|
|
|
|
extern void init_ps_display(const char *fixed_part);
|
|
|
|
extern void set_ps_display(const char *activity);
|
|
|
|
extern const char *get_ps_display(int *displen);
|
|
|
|
#endif /* PS_STATUS_H */
|