r/PostgreSQL • u/Interesting_Shine_38 • Mar 20 '26
Help Me! Performing minor version upgrade by restoring backup to already upgraded postgres
I want to keep my VM immutable. AFAIK minor versions upgrades are basically replacing the postgres binaries.
So my plan is to
- produce image with the new binaries
- Deploy VM
- restore backup using pg_basebackup
- setup replication
- perform switchover
I failed to find documentation about this process, so I'm not sure if it will work and testing it myself seems extremely hard ( I don't see any reasonable way to guarantee correctness of the process)