1
0
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:
stalkerg 2016-09-06 14:06:09 +03:00
parent 493de28819
commit 55686d33c7
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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 ''