Postgresql – postgres promote hot_standby (archive_command = ‘:’) to master (archive_command = ”)

postgresql

Assume we have

  1. master server (archive_command = '')
  2. hot_standby server (archive_command = ':')
  3. pg_receivewal server (from master slot)

What would be the correct procedure to promote hot_standby server to master, change archive_command to '' and change pg_receivewal slot?

My concern is a duplicate wal file mess between all 3 servers if done incorrectly.

Best Answer

It's not normally recommended to promote the hot standby but have you read this article on it?

https://help.theatremanager.com/book/export/html/3679