Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL 17: Best way to update docker container postgresql #1293

Closed
SimonBard opened this issue Dec 2, 2024 · 1 comment
Closed

PostgreSQL 17: Best way to update docker container postgresql #1293

SimonBard opened this issue Dec 2, 2024 · 1 comment

Comments

@SimonBard
Copy link

My docker container does not start since the update to Postgresql 17. Container was automatically updated by watchtower.
What is the best way to update the database?

One way I imagine is to start a container with older version on another port and from within the container, do
pg_dumpall -p 5432 | psql -d postgres -p 5433

I have no clue if this works or not, but could not find anything in the docu.

@tianon
Copy link
Member

tianon commented Dec 2, 2024

Major versions upgrades are complicated; see #37

Arguably, we should probably remove the generic tag aliases like latest entirely. 🤔

However, I'm going to close this in favor of #37 (which as a lot more discussion around the problem).

(FWIW, your dump+load solution is effectively how the official pg_upgrade tool itself works.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants