Upgrade PostgreSQL from 12.0 to 16.8 - #824
Conversation
a945318 to
3a7b26d
Compare
|
I re-triggered the CI, still failed. Please check it. |
Signed-off-by: Atharva Vaish <atharva.vaish240@gmail.com>
3a7b26d to
1e229bc
Compare
|
My branch accidentally included an unrelated Makefile change. I've removed it, fixed the commit, and pushed the updated branch. I had also verified the PostgreSQL upgrade on a local environment: make local completed successfully. Kindly re-trigger the CI If the CI still fails - |
yeasy
left a comment
There was a problem hiding this comment.
Thanks for the upgrade! A few items to address before merging:
-
Title correction: The PR title says '11.1 to 16.8' but the actual change in the files is from
postgres:12.0topostgres:16.8. Please update the title. -
Migration documentation needed: PostgreSQL major version upgrades are not drop-in replacements. Existing Docker volumes with PG 12 data directories are incompatible with PG 16 and will cause a fatal error on startup. Please add:
- A note in the PR description about the breaking change for existing users
- Migration instructions (e.g.,
pg_dump/pg_restoreorpg_upgradesteps) - Or at minimum, a warning to delete existing volumes before upgrading
-
Otherwise the change itself is correct and necessary — PG 12 reaches EOL in Nov 2025.
|
@yeasy @YoungHypo |
|
Thanks — the original title correction and the basic major-version migration warning are now addressed. I cannot approve this yet because several merge blockers remain.
Once these points are addressed and the current head passes CI, please request another review. |
Signed-off-by: Atharva Vaish <atharva.vaish240@gmail.com>
d7e140a to
f80f349
Compare
|
@yeasy @YoungHypo |
Description
Upgrades the PostgreSQL image used by the local development environment from
postgres:12.0topostgres:16.8.PostgreSQL 12 has reached end of life and no longer receives security updates. The new version is pinned to a specific minor release to keep the development environment reproducible.
Fixes #791
Migration Note
Important: This update changes PostgreSQL from version 12.0 to 16.8.
PostgreSQL major versions are not compatible at the data-directory level, so
an existing PostgreSQL 12 volume cannot be directly reused with PostgreSQL
16.8.
If you have existing database data that needs to be preserved, back it up
using
pg_dump, recreate the PostgreSQL volume, and restore the backup intothe new PostgreSQL 16.8 instance.
Migration Steps
Verification
@yeasy
@snehanair-486