mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-23 11:45:36 +02:00
Don't use partial xlog.
This commit is contained in:
parent
493de28819
commit
55686d33c7
4
backup.c
4
backup.c
@ -1351,13 +1351,13 @@ StreamLog(void *arg)
|
||||
ctl.basedir = basedir;
|
||||
ctl.stream_stop = stop_streaming;
|
||||
ctl.standby_message_timeout = standby_message_timeout;
|
||||
ctl.partial_suffix = ".partial";
|
||||
ctl.partial_suffix = NULL;
|
||||
ctl.synchronous = false;
|
||||
ctl.mark_done = false;
|
||||
ReceiveXlogStream(conn, &ctl);
|
||||
#else
|
||||
ReceiveXlogStream(conn, startpos, starttli, NULL, basedir,
|
||||
stop_streaming, standby_message_timeout, ".partial",
|
||||
stop_streaming, standby_message_timeout, NULL,
|
||||
false, false);
|
||||
#endif
|
||||
|
||||
|
@ -183,6 +183,7 @@ psql --no-psqlrc -p ${TEST_PGPORT} -d pgbench -c "SELECT * FROM pgbench_branches
|
||||
pg_ctl stop -m immediate > /dev/null 2>&1
|
||||
pg_arman restore -B ${BACKUP_PATH} --stream --verbose >> ${TEST_BASE}/TEST-0011-run.out 2>&1;echo $?
|
||||
pg_ctl start -w -t 600 > /dev/null 2>&1
|
||||
sleep 5
|
||||
psql --no-psqlrc -p ${TEST_PGPORT} -d pgbench -c "SELECT * FROM pgbench_branches;" > ${TEST_BASE}/TEST-0011-after.out
|
||||
diff ${TEST_BASE}/TEST-0011-before.out ${TEST_BASE}/TEST-0011-after.out
|
||||
echo ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user