3 ms·
So you have two easy options. You can do an in-place upgrade with pg_upgrade: https://www.postgresql.org/docs/10/static/pgupgrade.html https://www.postgresql.o
by Tostino 9y ago
So you have two easy options. You can do an in-place upgrade with pg_upgrade: https://www.postgresql.org/docs/10/static/pgupgrade.html https://www.postgresql.org/docs/10/static/pgupgrade.html
I've personally never used this tool.
I normally schedule a maintenance period, and use pg_dump / pg_dumpall: https://www.postgresql.org/docs/10/static/upgrading.html https://www.postgresql.org/docs/10/static/upgrading.html
Then I create a new server and install the new version of Postgres, and apply all custom configurations, turn off the database to external access, use pg_dump / pg_dumpall to create logical backups, restore them to the new server, configure a new replica, test my application internally, then when i'm happy i'll turn everything back on for external access.
- buro9 9y agoV. helpful, thank you. Probably going to go the pg_dump route.