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

@@ -1,5 +1,5 @@
#!/bin/bash
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 "==== DB: $db ===="
psql -d "$db" -c "SELECT * FROM pg_stat_subscription;"
done