diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-10-31 12:44:48 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-10-31 12:44:48 +0900 |
commit | d9d873bac67047cfacc9f5ef96ee488f2cb0f1c3 (patch) | |
tree | 5ba639609f866df4c3a3c5b4aa83af75844b6f36 /contrib/pg_stat_statements/pg_stat_statements.c | |
parent | a9f8ca6005f1441b4e28272f744fb01fbc14b29f (diff) | |
download | postgresql-d9d873bac67047cfacc9f5ef96ee488f2cb0f1c3.tar.gz postgresql-d9d873bac67047cfacc9f5ef96ee488f2cb0f1c3.zip |
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 'contrib/pg_stat_statements/pg_stat_statements.c')
-rw-r--r-- | contrib/pg_stat_statements/pg_stat_statements.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c index e5aa429995c..0beb56a8044 100644 --- a/contrib/pg_stat_statements/pg_stat_statements.c +++ b/contrib/pg_stat_statements/pg_stat_statements.c @@ -283,11 +283,12 @@ static const struct config_enum_entry track_options[] = {NULL, 0, false} }; -static int pgss_max; /* max # statements to track */ -static int pgss_track; /* tracking level */ -static bool pgss_track_utility; /* whether to track utility commands */ -static bool pgss_track_planning; /* whether to track planning duration */ -static bool pgss_save; /* whether to save stats across shutdown */ +static int pgss_max = 5000; /* max # statements to track */ +static int pgss_track = PGSS_TRACK_TOP; /* tracking level */ +static bool pgss_track_utility = true; /* whether to track utility commands */ +static bool pgss_track_planning = false; /* whether to track planning + * duration */ +static bool pgss_save = true; /* whether to save stats across shutdown */ #define pgss_enabled(level) \ |