Upgrading Postgres to Version 19 in Docker: Why the Tag Change Fails and How to Proceed
Changing the image tag alone does not upgrade a Postgres Docker deployment, because postgres:19 refuses to start on a data directory created by version 17 or 18. The author recommends a dump and restore into a fresh version 19 cluster for databases of a few gigabytes, though pg_upgrade is an option for faster upgrades with more pitfalls. Testing was done on a laptop with official images and a small 100,000-row database containing several index types and an MD5 password role. Four errors were encountered during the process, each documented with its fix. The article also notes that the Docker volume mount path changed in version 18, and lists behavior changes in version 19 that may affect applications, such as JIT being off by default and RADIUS authentication being removed.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in