forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit957bafb
committed
Fix pg_dumpall with database names containing =
If a database name contained a '=' character, pg_dumpall failed. The problemwas in the way pg_dumpall passes the database name to pg_dump on thecommand line. If it contained a '=' character, pg_dump would interpret itas a libpq connection string instead of a plain database name.To fix, pass the database name to pg_dump as a connection string,"dbname=foo", with the database name escaped if necessary.Back-patch to all supported branches.1 parent23ef963 commit957bafb
1 file changed
+33
-1
lines changedLines changed: 33 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
| |||
1583 | 1584 |
| |
1584 | 1585 |
| |
1585 | 1586 |
| |
| 1587 | + | |
1586 | 1588 |
| |
1587 | 1589 |
| |
1588 | 1590 |
| |
| |||
1598 | 1600 |
| |
1599 | 1601 |
| |
1600 | 1602 |
| |
1601 |
| - | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
1602 | 1614 |
| |
1603 | 1615 |
| |
1604 | 1616 |
| |
| |||
1611 | 1623 |
| |
1612 | 1624 |
| |
1613 | 1625 |
| |
| 1626 | + | |
1614 | 1627 |
| |
1615 | 1628 |
| |
1616 | 1629 |
| |
| |||
1834 | 1847 |
| |
1835 | 1848 |
| |
1836 | 1849 |
| |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
1837 | 1869 |
| |
1838 | 1870 |
| |
1839 | 1871 |
| |
|
0 commit comments
Comments
(0)