diff options
| author | Michael Paquier | 2022-10-31 03:44:48 +0000 |
|---|---|---|
| committer | Michael Paquier | 2022-10-31 03:44:48 +0000 |
| commit | d9d873bac67047cfacc9f5ef96ee488f2cb0f1c3 (patch) | |
| tree | 5ba639609f866df4c3a3c5b4aa83af75844b6f36 /src/include/utils | |
| parent | a9f8ca6005f1441b4e28272f744fb01fbc14b29f (diff) | |
Clean up some inconsistencies with GUC declarations
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
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/ps_status.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/utils/ps_status.h b/src/include/utils/ps_status.h index bba463591f8..6953a326f12 100644 --- a/src/include/utils/ps_status.h +++ b/src/include/utils/ps_status.h @@ -12,6 +12,13 @@ #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); |
