forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4bdccd8
committed
Fix pg_dumpall to work for databases flagged as read-only.
pg_dumpall's charter is to be able to recreate a database cluster'scontents in a virgin installation, but it was failing to honor thatcontract if the cluster had any ALTER DATABASE SETdefault_transaction_read_only settings. By including a SET commandfor the connection for each connection opened by pg_dumpall output,errors are avoided and the source cluster is successfullyrecreated.There was discussion of whether to also set this for the connectionapplying pg_dump output, but it was felt that it was both lessappropriate in that context, and far easier to work around.Backpatch to all supported branches.1 parent9f1e051 commit4bdccd8
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
441 | 441 |
| |
442 | 442 |
| |
443 | 443 |
| |
| 444 | + | |
| 445 | + | |
| 446 | + | |
444 | 447 |
| |
445 | 448 |
| |
446 | 449 |
| |
| |||
1550 | 1553 |
| |
1551 | 1554 |
| |
1552 | 1555 |
| |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
1553 | 1567 |
| |
1554 | 1568 |
| |
1555 | 1569 |
| |
|
0 commit comments
Comments
(0)