8000 Pbckp 125 by MetalDream666 · Pull Request #538 · postgrespro/pg_probackup · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,18 +274,20 @@ StreamLog(void *arg)
ctl.synchronous = false;
ctl.mark_done = false;

#if PG_VERSION_NUM >= 100000
#if PG_VERSION_NUM >= 150000
ctl.walmethod = CreateWalDirectoryMethod(
stream_arg->basedir,
PG_COMPRESSION_NONE,
0,
false);
#elif PG_VERSION_NUM >= 100000
#else /* PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 150000 */
ctl.walmethod = CreateWalDirectoryMethod(
stream_arg->basedir,
// (instance_config.compress_alg == NONE_COMPRESS) ? 0 : instance_config.compress_level,
0,
false);
#endif /* PG_VERSION_NUM >= 150000 */
ctl.replication_slot = replication_slot;
ctl.stop_socket = PGINVALID_SOCKET;
ctl.do_sync = false; /* We sync all files at the end of backup */
Expand Down
0