pgautoupgrade
pgautoupgrade makes upgrading PostgreSQL databases in Docker seamless.
Description
It is probably not an understatement to say that PostgreSQL is the most popular open-source database system. And deploying it as a container is likely the most used deployment method.
Upgrading between major Postgres versions requires invoking the “pg_upgrade” utility, which can be an issue in these container-based deployments. You would have to shut down your existing Postgres container, spin up a separate instance running that pg_upgrade utility, and then redeploy a new container with the updated version. This requires manual work and is also cumbersome when managing many database instances.
pgautoupgrade is built on top of the official PostgreSQL Docker image. When starting, it checks if your Postgres data directory contains an outdated version, and automatically runs the upgrade before starting the server. Or if you just want to use our container for the automation, there is also a “one-shot” mode to do so. It also handles various aspects around upgrading, e.g., migrating to the new storage layout for Postgres v18 or reindexing the database.
Members
Linked Accounts
pgautoupgrade owns the following accounts on other platforms:
Repositories
docker-pgautoupgrade Stars 1199 Updated this week
A PostgreSQL Docker container that automatically upgrades your database
History
pgautoupgrade joined 9 months ago.