File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -274,18 +274,20 @@ StreamLog(void *arg)
274
274
ctl .synchronous = false;
275
275
ctl .mark_done = false;
276
276
277
+ #if PG_VERSION_NUM >= 100000
277
278
#if PG_VERSION_NUM >= 150000
278
279
ctl .walmethod = CreateWalDirectoryMethod (
279
280
stream_arg -> basedir ,
280
281
PG_COMPRESSION_NONE ,
281
282
0 ,
282
283
false);
283
- #elif PG_VERSION_NUM >= 100000
284
+ #else /* PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 150000 */
284
285
ctl .walmethod = CreateWalDirectoryMethod (
285
286
stream_arg -> basedir ,
286
287
// (instance_config.compress_alg == NONE_COMPRESS) ? 0 : instance_config.compress_level,
287
288
0 ,
288
289
false);
290
+ #endif /* PG_VERSION_NUM >= 150000 */
289
291
ctl .replication_slot = replication_slot ;
290
292
ctl .stop_socket = PGINVALID_SOCKET ;
291
293
ctl .do_sync = false; /* We sync all files at the end of backup */
You can’t perform that action at this time.
0 commit comments