File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -274,18 +274,20 @@ StreamLog(void *arg)
274274 ctl .synchronous = false;
275275 ctl .mark_done = false;
276276
277+ #if PG_VERSION_NUM >= 100000
277278#if PG_VERSION_NUM >= 150000
278279 ctl .walmethod = CreateWalDirectoryMethod (
279280 stream_arg -> basedir ,
280281 PG_COMPRESSION_NONE ,
281282 0 ,
282283 false);
283- #elif PG_VERSION_NUM >= 100000
284+ #else /* PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 150000 */
284285 ctl .walmethod = CreateWalDirectoryMethod (
285286 stream_arg -> basedir ,
286287// (instance_config.compress_alg == NONE_COMPRESS) ? 0 : instance_config.compress_level,
287288 0 ,
288289 false);
290+ #endif /* PG_VERSION_NUM >= 150000 */
289291 ctl .replication_slot = replication_slot ;
290292 ctl .stop_socket = PGINVALID_SOCKET ;
291293 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