@@ -69,7 +69,7 @@ pg_arman restore -B ${BACKUP_PATH} --verbose >> ${TEST_BASE}/TEST-0003-run.out 2
69
69
pg_ctl start -w -t 600> /dev/null2>&1
70
70
pgbench -p${TEST_PGPORT} -d pgbench> /dev/null2>&1
71
71
pg_ctl stop -m immediate> /dev/null2>&1
72
- pg_arman restore -B${BACKUP_PATH} --recovery-target- timeline=${TARGET_TLI} --verbose>> ${TEST_BASE} /TEST-0003-run.out2>&1 ; echo $?
72
+ pg_arman restore -B${BACKUP_PATH} --timeline=${TARGET_TLI} --verbose>> ${TEST_BASE} /TEST-0003-run.out2>&1 ; echo $?
73
73
echo " checking recovery.conf..."
74
74
TARGET_TLI_IN_RECOVERY_CONF=` grep" recovery_target_timeline =" ${PGDATA_PATH} /recovery.conf| awk' {print $3}' | sed -e" s/'//g" `
75
75
if [${TARGET_TLI} = ${TARGET_TLI_IN_RECOVERY_CONF} ]; then
@@ -95,7 +95,7 @@ pg_arman validate -B ${BACKUP_PATH} --verbose >> ${TEST_BASE}/TEST-0004-run.out
95
95
TARGET_TIME=` date +" %Y-%m-%d %H:%M:%S" `
96
96
pgbench -p${TEST_PGPORT} -d pgbench> /dev/null2>&1
97
97
pg_ctl stop -m immediate> /dev/null2>&1
98
- pg_arman restore -B${BACKUP_PATH} --recovery-target- time=" ${TARGET_TIME} " --verbose>> ${TEST_BASE} /TEST-0004-run.out2>&1 ; echo $?
98
+ pg_arman restore -B${BACKUP_PATH} --time=" ${TARGET_TIME} " --verbose>> ${TEST_BASE} /TEST-0004-run.out2>&1 ; echo $?
99
99
pg_ctl start -w -t 600> /dev/null2>&1
100
100
psql --no-psqlrc -p${TEST_PGPORT} -d pgbench -c" SELECT * FROM pgbench_branches;" > ${TEST_BASE} /TEST-0004-after.out
101
101
diff${TEST_BASE} /TEST-0004-before.out${TEST_BASE} /TEST-0004-after.out
@@ -118,15 +118,15 @@ pgbench -p ${TEST_PGPORT} -d pgbench > /dev/null 2>&1
118
118
psql --no-psqlrc -p${TEST_PGPORT} -d pgbench -c' SELECT pg_switch_xlog()' > /dev/null2>&1
119
119
# Fast mode is used to ensure that the last segment is archived as well.
120
120
pg_ctl stop -m fast> /dev/null2>&1
121
- pg_arman restore -B${BACKUP_PATH} --recovery-target- xid=" ${TARGET_XID} " --verbose>> ${TEST_BASE} /TEST-0005-run.out2>&1 ; echo $?
121
+ pg_arman restore -B${BACKUP_PATH} --xid=" ${TARGET_XID} " --verbose>> ${TEST_BASE} /TEST-0005-run.out2>&1 ; echo $?
122
122
pg_ctl start -w -t 600> /dev/null2>&1
123
123
psql --no-psqlrc -p${TEST_PGPORT} -d pgbench -c" SELECT * FROM pgbench_branches;" > ${TEST_BASE} /TEST-0005-after.out
124
124
psql --no-psqlrc -p${TEST_PGPORT} -d pgbench -c" SELECT * FROM tbl0005;" > ${TEST_BASE} /TEST-0005-tbl.dump
125
125
diff${TEST_BASE} /TEST-0005-before.out${TEST_BASE} /TEST-0005-after.out
126
126
if grep" inserted" ${TEST_BASE} /TEST-0005-tbl.dump> /dev/null; then
127
- echo ' OK:recovery-target- xid options works well.'
127
+ echo ' OK: xid options works well.'
128
128
else
129
- echo ' NG:recovery-target- xid options does not work well.'
129
+ echo ' NG: xid options does not work well.'
130
130
pg_ctl stop -m immediate -D${PGDATA_PATH} > /dev/null2>&1
131
131
exit 1
132
132
fi
@@ -252,15 +252,15 @@ pgbench -p ${TEST_PGPORT} -d pgbench > /dev/null 2>&1
252
252
psql --no-psqlrc -p${TEST_PGPORT} -d pgbench -c' SELECT pg_switch_xlog()' > /dev/null2>&1
253
253
# Fast mode is used to ensure that the last segment is archived as well.
254
254
pg_ctl stop -m fast> /dev/null2>&1
255
- pg_arman restore -B${BACKUP_PATH} --recovery-target- xid=" ${TARGET_XID} " --recovery-target -inclusive=false --verbose>> ${TEST_BASE} /TEST-0008-run.out2>&1 ; echo $?
255
+ pg_arman restore -B${BACKUP_PATH} --xid=" ${TARGET_XID} " --inclusive=false --verbose>> ${TEST_BASE} /TEST-0008-run.out2>&1 ; echo $?
256
256
pg_ctl start -w -t 600> /dev/null2>&1
257
257
psql --no-psqlrc -p${TEST_PGPORT} -d pgbench -c" SELECT * FROM pgbench_branches;" > ${TEST_BASE} /TEST-0008-after.out
258
258
psql --no-psqlrc -p${TEST_PGPORT} -d pgbench -c" SELECT * FROM tbl0008;" > ${TEST_BASE} /TEST-0008-tbl.dump
259
259
diff${TEST_BASE} /TEST-0008-before.out${TEST_BASE} /TEST-0008-after.out
260
260
if grep" inserted" ${TEST_BASE} /TEST-0008-tbl.dump> /dev/null; then
261
- echo ' NG:recovery-target- inclusive=false does not work well.'
261
+ echo ' NG: inclusive=false does not work well.'
262
262
else
263
- echo ' OK:recovery-target- inclusive=false works well.'
263
+ echo ' OK: inclusive=false works well.'
264
264
pg_ctl stop -m immediate -D${PGDATA_PATH} > /dev/null2>&1
265
265
exit 1
266
266
fi