forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8b4ced4
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 parentfeae7c3 commit8b4ced4
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 |
| |
| |||
1560 | 1561 |
| |
1561 | 1562 |
| |
1562 | 1563 |
| |
| 1564 | + | |
1563 | 1565 |
| |
1564 | 1566 |
| |
1565 | 1567 |
| |
| |||
1575 | 1577 |
| |
1576 | 1578 |
| |
1577 | 1579 |
| |
1578 |
| - | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
1579 | 1591 |
| |
1580 | 1592 |
| |
1581 | 1593 |
| |
| |||
1588 | 1600 |
| |
1589 | 1601 |
| |
1590 | 1602 |
| |
| 1603 | + | |
1591 | 1604 |
| |
1592 | 1605 |
| |
1593 | 1606 |
| |
| |||
1811 | 1824 |
| |
1812 | 1825 |
| |
1813 | 1826 |
| |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
1814 | 1846 |
| |
1815 | 1847 |
| |
1816 | 1848 |
| |
|
0 commit comments
Comments
(0)