Get the latest tech news
PG Auto Upgrade – Docker (and K8s) container to auto upgrade your database
A PostgreSQL Docker container that automatically upgrades your database - pgautoupgrade/docker-pgautoupgrade
This means, when we start the indexing operation, database locks are placed which do not allow for any modifications as long as the task is running. The container has to run as root if using one shot mode, otherwise we are unable to restore the existing file permissions of your Postgres data directory. It then checks that the database files were indeed updated to the newest PostgreSQL release, and outputs an obvious SUCCESS/FAILURE message for that loop.
Or read this on Hacker News