File tree Expand file tree Collapse file tree 19 files changed +70
-58
lines changed Expand file tree Collapse file tree 19 files changed +70
-58
lines changed Original file line number Diff line number Diff line change 21
21
PG_MODULE_MAGIC ;
22
22
23
23
/* GUC Variables */
24
- static int auth_delay_milliseconds ;
24
+ static int auth_delay_milliseconds = 0 ;
25
25
26
26
/* Original Hook */
27
27
static ClientAuthentication_hook_type original_client_auth_hook = NULL ;
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ static AutoPrewarmSharedState *apw_state = NULL;
103
103
104
104
/* GUC variables. */
105
105
static bool autoprewarm = true; /* start worker? */
106
- static int autoprewarm_interval ; /* dump interval */
106
+ static int autoprewarm_interval = 300 ; /* dump interval */
107
107
108
108
/*
109
109
* Module load callback.
Original file line number Diff line number Diff line change @@ -283,11 +283,12 @@ static const struct config_enum_entry track_options[] =
283
283
{NULL , 0 , false}
284
284
};
285
285
286
- static int pgss_max ; /* max # statements to track */
287
- static int pgss_track ; /* tracking level */
288
- static bool pgss_track_utility ; /* whether to track utility commands */
289
- static bool pgss_track_planning ; /* whether to track planning duration */
290
- static bool pgss_save ; /* whether to save stats across shutdown */
286
+ static int pgss_max = 5000 ; /* max # statements to track */
287
+ static int pgss_track = PGSS_TRACK_TOP ; /* tracking level */
288
+ static bool pgss_track_utility = true; /* whether to track utility commands */
289
+ static bool pgss_track_planning = false; /* whether to track planning
290
+ * duration */
291
+ static bool pgss_save = true; /* whether to save stats across shutdown */
291
292
292
293
293
294
#define pgss_enabled (level ) \
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ _PG_init(void)
68
68
"Sets the threshold used by the % operator." ,
69
69
"Valid range is 0.0 .. 1.0." ,
70
70
& similarity_threshold ,
71
- 0.3 ,
71
+ 0.3f ,
72
72
0.0 ,
73
73
1.0 ,
74
74
PGC_USERSET ,
@@ -80,7 +80,7 @@ _PG_init(void)
80
80
"Sets the threshold used by the <% operator." ,
81
81
"Valid range is 0.0 .. 1.0." ,
82
82
& word_similarity_threshold ,
83
- 0.6 ,
83
+ 0.6f ,
84
84
0.0 ,
85
85
1.0 ,
86
86
PGC_USERSET ,
@@ -92,7 +92,7 @@ _PG_init(void)
92
92
"Sets the threshold used by the <<% operator." ,
93
93
"Valid range is 0.0 .. 1.0." ,
94
94
& strict_word_similarity_threshold ,
95
- 0.5 ,
95
+ 0.5f ,
96
96
0.0 ,
97
97
1.0 ,
98
98
PGC_USERSET ,
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ static sepgsql_context_info_t sepgsql_context_info;
57
57
/*
58
58
* GUC: sepgsql.permissive = (on|off)
59
59
*/
60
- static bool sepgsql_permissive ;
60
+ static bool sepgsql_permissive = false ;
61
61
62
62
bool
63
63
sepgsql_get_permissive (void )
@@ -68,7 +68,7 @@ sepgsql_get_permissive(void)
68
68
/*
69
69
* GUC: sepgsql.debug_audit = (on|off)
70
70
*/
71
- static bool sepgsql_debug_audit ;
71
+ static bool sepgsql_debug_audit = false ;
72
72
73
73
bool
74
74
sepgsql_get_debug_audit (void )
Original file line number Diff line number Diff line change 75
75
* User-tweakable parameters
76
76
*/
77
77
int DefaultXactIsoLevel = XACT_READ_COMMITTED ;
78
- int XactIsoLevel ;
78
+ int XactIsoLevel = XACT_READ_COMMITTED ;
79
79
80
80
bool DefaultXactReadOnly = false;
81
81
bool XactReadOnly ;
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ bool wal_init_zero = true;
131
131
bool wal_recycle = true;
132
132
bool log_checkpoints = true;
133
133
int sync_method = DEFAULT_SYNC_METHOD ;
134
- int wal_level = WAL_LEVEL_MINIMAL ;
134
+ int wal_level = WAL_LEVEL_REPLICA ;
135
135
int CommitDelay = 0 ; /* precommit delay in microseconds */
136
136
int CommitSiblings = 5 ; /* # concurrent xacts needed to sleep */
137
137
int wal_retrieve_retry_interval = 5000 ;
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ char *SSLECDHCurve;
58
58
/* GUC variable: if false, prefer client ciphers */
59
59
bool SSLPreferServerCiphers ;
60
60
61
- int ssl_min_protocol_version ;
62
- int ssl_max_protocol_version ;
61
+ int ssl_min_protocol_version = PG_TLS1_2_VERSION ;
62
+ int ssl_max_protocol_version = PG_TLS_ANY ;
63
63
64
64
/* ------------------------------------------------------------ */
65
65
/* Procedures common to all secure sessions */
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ BackgroundWorker *MyBgworkerEntry = NULL;
196
196
197
197
198
198
/* The socket number we are listening for connections on */
199
- int PostPortNumber ;
199
+ int PostPortNumber = DEF_PGPORT ;
200
200
201
201
/* The directory names for Unix socket(s) */
202
202
char * Unix_socket_directories ;
Original file line number Diff line number Diff line change @@ -142,22 +142,22 @@ bool track_io_timing = false;
142
142
* for buffers not belonging to tablespaces that have their
143
143
* effective_io_concurrency parameter set.
144
144
*/
145
- int effective_io_concurrency = 0 ;
145
+ int effective_io_concurrency = DEFAULT_EFFECTIVE_IO_CONCURRENCY ;
146
146
147
147
/*
148
148
* Like effective_io_concurrency, but used by maintenance code paths that might
149
149
* benefit from a higher setting because they work on behalf of many sessions.
150
150
* Overridden by the tablespace setting of the same name.
151
151
*/
152
- int maintenance_io_concurrency = 0 ;
152
+ int maintenance_io_concurrency = DEFAULT_MAINTENANCE_IO_CONCURRENCY ;
153
153
154
154
/*
155
155
* GUC variables about triggering kernel writeback for buffers written; OS
156
156
* dependent defaults are set via the GUC mechanism.
157
157
*/
158
- int checkpoint_flush_after = 0 ;
159
- int bgwriter_flush_after = 0 ;
160
- int backend_flush_after = 0 ;
5948
code>
158
+ int checkpoint_flush_after = DEFAULT_CHECKPOINT_FLUSH_AFTER ;
159
+ int bgwriter_flush_after = DEFAULT_BGWRITER_FLUSH_AFTER ;
160
+ int backend_flush_after = DEFAULT_BACKEND_FLUSH_AFTER ;
161
161
162
162
/* local state for StartBufferIO and related functions */
163
163
static BufferDesc * InProgressBuf = NULL ;
You can’t perform that action at this time.
0 commit comments