forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit53b0f21
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 parent8e53ae0 commit53b0f21
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
452 | 452 |
| |
453 | 453 |
| |
454 | 454 |
| |
| 455 | + | |
| 456 | + | |
| 457 | + | |
455 | 458 |
| |
456 | 459 |
| |
457 | 460 |
| |
| |||
1600 | 1603 |
| |
1601 | 1604 |
| |
1602 | 1605 |
| |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
1603 | 1617 |
| |
1604 | 1618 |
| |
1605 | 1619 |
| |
|
0 commit comments
Comments
(0)