From 4f8b1d79bbf97013942d962f472eba3492b74cad Mon Sep 17 00:00:00 2001 From: Utharn Buranasaksee Date: Thu, 27 Dec 2018 11:56:24 +0700 Subject: [PATCH] Update do_rewind A latter version of postgresql use pg_wal instead of pg_xlog --- src/pgsql/bin/functions/do_rewind | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pgsql/bin/functions/do_rewind b/src/pgsql/bin/functions/do_rewind index a6a72755..6723da63 100755 --- a/src/pgsql/bin/functions/do_rewind +++ b/src/pgsql/bin/functions/do_rewind @@ -10,7 +10,7 @@ if [[ "$MASTER_SLAVE_SWITCH" == "1" ]] || [ "$TRY_TO_FOLLOW_CLUSTER_MASTER" == " gosu postgres repmgr standby archive-config --config-archive-dir=/tmp/repmgr-archive echo ">>>>>> Start server to be able to rewind (weird hack to avoid dirty shutdown issue)" - rm -rf $PGDATA/pg_xlog/archive_status/ + rm -rf $PGDATA/pg_wal/archive_status/ rm $PGDATA/postmaster.pid gosu postgres pg_ctl -D "$PGDATA" -o "-c listen_addresses='localhost'" -w start