-
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Thank you for this tool! It worked flawlessly for many upgrades!
However, I just found that it seems that only 1 database is migrated in a cluster during an upgrade.
When upgrading a cluster with two databases (say one and two) using:
sudo docker run --rm --name pgauto -it \
--volume /opt/webapp-postgresql:/var/lib/postgresql:rw \
--volume /opt/webapp-postgresql/data:/var/lib/postgresql/data:rw \
-e POSTGRES_DB=one \
-e POSTGRES_PASSWORD=** \
-e POSTGRES_USER=postgres \
-e PGAUTO_ONESHOT=yes \
pgautoupgrade/pgautoupgrade:18-alpine
It results in only database one (successfully) available on the migrated cluster. Database two is left behind and not available on the upgraded cluster.
If I do not set POSTGRES_DB both are not migrated.
Is it possible to upgrade with multiple databases in the same cluster? Am I missing something?
Metadata
Metadata
Assignees
Labels
No labels