I have two node PostgreSQL 11 HA setup as follows.
node1 - hamaster.myorg.net
node2 - haslave.myorg.net
recovery.conf
on node2 is as follows:
standby_mode = 'on'
primary_conninfo = 'host=hamaster.myorg.net port=5432 user=<user_here> password=<password_here> sslmode=require sslcompression=0'
trigger_file = '/tmp/MasterNow'
recovery_target_timeline = 'latest'
I want to upgrade PostgreSQL to 12 on both the system. I have identified following steps in exact sequence:
- Stop PostgreSQL on master node.
- Update the RPM (i am using centos 7.8) to PostgreSQL 12 on master node and upgrade the PostgreSQL using
pg_upgrade
- Start the PostgreSQL on master node.
- Stop the PostgreSQL on slave node.
- Update the RPM (i am using centos 7.8) to PostgreSQL 12 on slave node and upgrade the PostgreSQL using
pg_upgrade
- On slave node, copy the contents from
recovery.conf
topostgresql.conf
and remove therecovery.conf
. Also create the filestandby.signal
in data directory on slave server. Renametrigger_file
topromote_trigger_file
. Remove the linestandby_mode = 'on'
as this is NOT required by PostgreSQL 12. - Start the PostgreSQL on slave node.
Is there anything missing?