A PostgreSQL Docker container that automatically upgrades your database
1–10 of 93 posts
Re: A PostgreSQL Docker container that automatically upgrades your database
#2Re: A PostgreSQL Docker container that automatically upgrades your database
#3Just to be clear, this isn't for actually running postgres to serve your database, right? This is just more or less a tool to upgrade your data files to a new postgres version?
Then it starts PostgreSQL 15.3 as per normal.
It's intended as being a drop-in replacement for existing (alpine based) PostgreSQL containers.
That being said, it's still pretty new so don't use it on production data until you've tested it first (etc).
--
Btw, it uses the "--link" option when it runs pg_upgrade so should be reasonably suitable even for databases of a fairly large size. That option means it processes the database files "in place" to avoid needing to make a 2nd copy.
At the moment it only process a single data directory, so if you have multiple then it's not yet suitable.
Re: A PostgreSQL Docker container that automatically upgrades your database
#4Re: A PostgreSQL Docker container that automatically upgrades your database
#5This covers one of the issues.
Re: A PostgreSQL Docker container that automatically upgrades your database
#6Related: https://github.com/tianon/docker-postgres-upgrade
Re: A PostgreSQL Docker container that automatically upgrades your database
#7Re: A PostgreSQL Docker container that automatically upgrades your database
#8I have always wondered how a database and its persistence is handled in a containerized environment. This covers one of the issues.
I've not done stuff with kubernetes yet though, so I have no idea how it's done there.
Re: A PostgreSQL Docker container that automatically upgrades your database
#9I have always wondered how a database and its persistence is handled in a containerized environment. This covers one of the issues.
Re: A PostgreSQL Docker container that automatically upgrades your database
#10I have always wondered how a database and its persistence is handled in a containerized environment. This covers one of the issues.
With PostgreSQL containers used in docker-compose, the common approach is to use a bind mount so the database files are persisted on the host. I've not done stuff with kubernetes yet though, so I have no idea how it's done there.