Skip to content

Support for multiple databases #165

@chris-1o

Description

@chris-1o

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions