summaryrefslogtreecommitdiff
path: root/contrib/auth_delay/auth_delay.c
diff options
context:
space:
mode:
authorMichael Paquier2022-10-31 03:44:48 +0000
committerMichael Paquier2022-10-31 03:44:48 +0000
commitd9d873bac67047cfacc9f5ef96ee488f2cb0f1c3 (patch)
tree5ba639609f866df4c3a3c5b4aa83af75844b6f36 /contrib/auth_delay/auth_delay.c
parenta9f8ca6005f1441b4e28272f744fb01fbc14b29f (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 'contrib/auth_delay/auth_delay.c')
-rw-r--r--contrib/auth_delay/auth_delay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/auth_delay/auth_delay.c b/contrib/auth_delay/auth_delay.c
index c3d78e5020f..4ca9b4afb1a 100644
--- a/contrib/auth_delay/auth_delay.c
+++ b/contrib/auth_delay/auth_delay.c
@@ -21,7 +21,7 @@
PG_MODULE_MAGIC;
/* GUC Variables */
-static int auth_delay_milliseconds;
+static int auth_delay_milliseconds = 0;
/* Original Hook */
static ClientAuthentication_hook_type original_client_auth_hook = NULL;