Ignore default db for migration/management

This commit is contained in:
2026-04-10 12:57:51 +04:00
parent 8e11df4544
commit fddcd4899e
8 changed files with 8 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ set -e
echo "== Creating subscriptions for all databases =="
for db in $(psql -Atqc "SELECT datname FROM pg_database WHERE datallowconn AND datname NOT IN ('template1')"); do
for db in $(psql -Atqc "SELECT datname FROM pg_database WHERE datallowconn AND datname NOT IN ('template1','postgres')"); do
echo "Processing DB: $db"
SLOT="migrate_slot_${db}"