Containerized Postgres version upgrade
How to upgrade postgres version which runs in docker container
Introduction
Main idea of this post is to demonstrate postgres major version upgrade process for the case when postgres runs within docker container.
Demonstrated approach uses pg_dumpall
utility. In any case it does not pretend to be the "best" approach.
There are other options availabe such as pg_upgrade
or setting up a replication server.
Moreover, for big databases pg_dumpall
might be non optimal or even not feasible solution.
But as said at the beginning, idea is to demonstrate possible upgrade process for containerized postgres installation.