Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pgsql/bin/functions/do_rewind
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down