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

How to Upgrade PostgreSQL in Docker and Kubernetes #102

Open
sedationh opened this issue Oct 23, 2024 · 0 comments
Open

How to Upgrade PostgreSQL in Docker and Kubernetes #102

sedationh opened this issue Oct 23, 2024 · 0 comments

Comments

@sedationh
Copy link
Owner

升级的时候需要关注是否需要数据迁移,下文提供了一些迁移可能用到的方法

https://www.cloudytuts.com/tutorials/docker/how-to-upgrade-postgresql-in-docker-and-kubernetes/

backup

docker exec -it eddc550220ed /usr/bin/pg_dumpall -U postgres > dumpfile

import

docker exec -it [new-postgres-container] psql -U [username] < dumpfile 
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

1 participant