Commit e50d300
committed
PostgreSQL: connect to the postgres db when enumerating databases (#345)
Regression in v2.63.0 from the pg_database enumeration change (#341):
without an explicit database, psql defaults the dbname to the USERNAME,
so dedicated backup users with no same-named database failed with
FATAL: database "<user>" does not exist — breaking every PostgreSQL
backup using 'Databases = *'. The old psql -l connected to the postgres
maintenance database implicitly; both catalog-query call sites now do
the same explicitly with -d postgres. Verified against PostgreSQL 17
with a dedicated backup role, including the GRANTed-privileges case the
original change fixed.1 parent a20a263 commit e50d300
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1731 | 1731 | | |
1732 | 1732 | | |
1733 | 1733 | | |
1734 | | - | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
1735 | 1739 | | |
1736 | 1740 | | |
1737 | 1741 | | |
| |||
1829 | 1833 | | |
1830 | 1834 | | |
1831 | 1835 | | |
1832 | | - | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
1833 | 1839 | | |
1834 | 1840 | | |
1835 | 1841 | | |
| |||
0 commit comments