1

I have been attempting to upgrade our AWS RDS Postgres from 11.22 to 12.17 and/or 15.5

In both instances I get the following error in the error log:

executing: SELECT datname, datallowconn FROM pg_catalog.pg_database All non-template0 databases must allow connections, i.e. their pg_database.datallowconn must be true

When examining those values after the failure I see: enter image description here

So where should I go from here?

asked Dec 18, 2023 at 3:57

1 Answer 1

2

You'd go to your preferred interactive database client and run the following statement:

ALTER DATABASE template_postgis ALLOW_CONNECTIONS TRUE;

You can restore the old state after the upgrade.

answered Dec 18, 2023 at 6:32

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.