forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit79f21b3
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 parent5c97528 commit79f21b3
1 file changed
+33
-1
lines changedLines changed: 33 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| 52 | + | |
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
| |||
1619 | 1620 |
| |
1620 | 1621 |
| |
1621 | 1622 |
| |
| 1623 | + | |
1622 | 1624 |
| |
1623 | 1625 |
| |
1624 | 1626 |
| |
| |||
1634 | 1636 |
| |
1635 | 1637 |
| |
1636 | 1638 |
| |
1637 |
| - | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
1638 | 1650 |
| |
1639 | 1651 |
| |
1640 | 1652 |
| |
| |||
1647 | 1659 |
| |
1648 | 1660 |
| |
1649 | 1661 |
| |
| 1662 | + | |
1650 | 1663 |
| |
1651 | 1664 |
| |
1652 | 1665 |
| |
| |||
1886 | 1899 |
| |
1887 | 1900 |
| |
1888 | 1901 |
| |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
1889 | 1921 |
| |
1890 | 1922 |
| |
1891 | 1923 |
| |
|
0 commit comments
Comments
(0)