Upgrade from 13.6 to 13.7 changes the version of Postgres and that means the database needs to be migrated as well.
In my case, using vanilla Postgres (in Docker), changing from version 11 to 12 caused an error postgresql database files are incompatible with server when starting Postgres.
The documentation should include a note about this.
As to the issue itself, it can be resolved easily with help of the following project: https://github.com/tianon/docker-postgres-upgrade
The upgrade of the DB consists of:
--link or not and the only difference is performance of the migration.docker run ...) and pipe the output to a log file. There is lots of output.pg_hba.conf from old data directory to new data directory. The file is there in new directory but server wont work with new file. (this file might be in the volume if you are using volumes)Hope this helps someone.
Hey @tomastzn,
thanks for your report.
Your problem could be related to the circumstances that you got in the Postgres container a latest folder under /var/lib/postgres/latest instead of /var/lib/postgres/11. I tested the migration and for me, it was working out of the box.
I would really appreciate a pull request with a documentation update 馃憤 馃挴
Hi @solidnerd,
I see the Postgres image referenced in the documentation does handle the migration automatically so this issue will only apply to those who run different/vanilla Postgres. I will send a PR with this information.
PR #2279 is up.
Was merged so we can close this issue.
Most helpful comment
Hi @solidnerd,
I see the Postgres image referenced in the documentation does handle the migration automatically so this issue will only apply to those who run different/vanilla Postgres. I will send a PR with this information.