Skip to content

Commit 044c037

Browse files
author
Sofia Kopikova
committed
[PBCKP-125] changes in function call CreateWalDirectoryMethod for 15 version
1 parent e58273a commit 044c037

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/stream.c

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy