forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf435cd1
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 parent2930c05 commitf435cd1
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 |
| |
| |||
1629 | 1630 |
| |
1630 | 1631 |
| |
1631 | 1632 |
| |
| 1633 | + | |
1632 | 1634 |
| |
1633 | 1635 |
| |
1634 | 1636 |
| |
| |||
1644 | 1646 |
| |
1645 | 1647 |
| |
1646 | 1648 |
| |
1647 |
| - | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
1648 | 1660 |
| |
1649 | 1661 |
| |
1650 | 1662 |
| |
| |||
1657 | 1669 |
| |
1658 | 1670 |
| |
1659 | 1671 |
| |
| 1672 | + | |
1660 | 1673 |
| |
1661 | 1674 |
| |
1662 | 1675 |
| |
| |||
1896 | 1909 |
| |
1897 | 1910 |
| |
1898 | 1911 |
| |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
1899 | 1931 |
| |
1900 | 1932 |
| |
1901 | 1933 |
| |
|
0 commit comments
Comments
(0)