Loading....
Recently, I need to upgrade my production PostgreSQL version from 11 to 12. I originally thought it would be simple by adjust docker-tag to newer version.
Unfortunately, when the container show up and has error as below
docker exec {container_id} pg_dumpall -U {username} > dump.sql
docker exec {container_id} bash psql -U {username} -d {default-database} < dump.sql
Finally, grab a cup of coffee