Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55686d3

Browse files
committed
Don't use partial xlog.
1 parent493de28 commit55686d3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎backup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,13 +1351,13 @@ StreamLog(void *arg)
13511351
ctl.basedir=basedir;
13521352
ctl.stream_stop=stop_streaming;
13531353
ctl.standby_message_timeout=standby_message_timeout;
1354-
ctl.partial_suffix=".partial";
1354+
ctl.partial_suffix=NULL;
13551355
ctl.synchronous= false;
13561356
ctl.mark_done= false;
13571357
ReceiveXlogStream(conn,&ctl);
13581358
#else
13591359
ReceiveXlogStream(conn,startpos,starttli,NULL,basedir,
1360-
stop_streaming,standby_message_timeout,".partial",
1360+
stop_streaming,standby_message_timeout,NULL,
13611361
false, false);
13621362
#endif
13631363

‎sql/restore.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ psql --no-psqlrc -p ${TEST_PGPORT} -d pgbench -c "SELECT * FROM pgbench_branches
183183
pg_ctl stop -m immediate> /dev/null2>&1
184184
pg_arman restore -B${BACKUP_PATH} --stream --verbose>>${TEST_BASE}/TEST-0011-run.out2>&1;echo$?
185185
pg_ctl start -w -t 600> /dev/null2>&1
186+
sleep 5
186187
psql --no-psqlrc -p${TEST_PGPORT} -d pgbench -c"SELECT * FROM pgbench_branches;">${TEST_BASE}/TEST-0011-after.out
187188
diff${TEST_BASE}/TEST-0011-before.out${TEST_BASE}/TEST-0011-after.out
188189
echo''

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp