Himal
Himal

Reputation: 1

Is it possible to run pg_rewind without shutdown the database?

Is it possible to run pg_rewind without shutting down the database?

I have started postgres service as PID 1 so when I'm stop (using pg_ctl stop)the db docker, PG container is also be stop and I have to run docker exec -it dockername /bin/sh to start again.

How can I sync datafiles after failover/failback. Method of use pg_rewind without restarting container.

Upvotes: 0

Views: 258

Answers (1)

Pablo Luna
Pablo Luna

Reputation: 428

You need the current-master running because pg_rewind does need a database connection through 5432 or any other database port you have. But the target node has to be stopped because we are changing all the datafiles in a physical way using pg_rewind.

Upvotes: 1

Related Questions