Skip to content

Commit 9323e34

Browse files
Merge pull request #538 from postgrespro/PBCKP-125
Pbckp 125
2 parents e58273a + 044c037 commit 9323e34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/stream.c

+3-1
Original file line numberDiff line numberDiff 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 */

0 commit comments

Comments
 (0)