File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -275,11 +275,19 @@ StreamLog(void *arg)
275
275
ctl .mark_done = false;
276
276
277
277
#if PG_VERSION_NUM >= 100000
278
+ #if PG_VERSION_NUM >= 150000
279
+ ctl .walmethod = CreateWalDirectoryMethod (
280
+ stream_arg -> basedir ,
281
+ COMPRESSION_NONE ,
282
+ 0 ,
283
+ false);
284
+ #else /* PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 150000 */
278
285
ctl .walmethod = CreateWalDirectoryMethod (
279
286
stream_arg -> basedir ,
280
287
// (instance_config.compress_alg == NONE_COMPRESS) ? 0 : instance_config.compress_level,
281
288
0 ,
282
289
false);
290
+ #endif /* PG_VERSION_NUM >= 150000 */
283
291
ctl .replication_slot = replication_slot ;
284
292
ctl .stop_socket = PGINVALID_SOCKET ;
285
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