- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit4500edc
committed
Do not require 'public' to exist for pg_dump -c
Commit330b84d didn't contemplate the case where the public schemahas been dropped and introduced a query which fails when there is nopublic schema into pg_dump (when used with -c).Adjust the query used by pg_dump to handle the case where the publicschema doesn't exist and add tests to check that such a case no longerfails.Back-patch the specific fix to 9.6, as the prior commit was.Adding tests for this case involved adding support to the pg_dumpTAP tests to work with multiple databases, which, while not a largechange, is a bit much to back-patch, so that's only done in master.Addresses bug #14650Discussion:https://www.postgresql.org/message-id/20170512181801.1795.47483%40wrigleys.postgresql.org1 parentf0256c7 commit4500edc
2 files changed
+113
-4
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4135 | 4135 |
| |
4136 | 4136 |
| |
4137 | 4137 |
| |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
4138 | 4141 |
| |
4139 | 4142 |
| |
4140 |
| - | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
4141 | 4146 |
| |
4142 | 4147 |
| |
4143 | 4148 |
| |
|
Lines changed: 107 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
100 | 117 |
| |
101 | 118 |
| |
102 | 119 |
| |
| |||
4524 | 4541 |
| |
4525 | 4542 |
| |
4526 | 4543 |
| |
| 4544 | + | |
| 4545 | + | |
| 4546 | + | |
| 4547 | + | |
| 4548 | + | |
| 4549 | + | |
| 4550 | + | |
| 4551 | + | |
| 4552 | + | |
| 4553 | + | |
| 4554 | + | |
| 4555 | + | |
| 4556 | + | |
| 4557 | + | |
| 4558 | + | |
| 4559 | + | |
| 4560 | + | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
4527 | 4573 |
| |
4528 | 4574 |
| |
4529 | 4575 |
| |
| |||
5219 | 5265 |
| |
5220 | 5266 |
| |
5221 | 5267 |
| |
| 5268 | + | |
| 5269 | + | |
| 5270 | + | |
| 5271 | + | |
| 5272 | + | |
| 5273 | + | |
| 5274 | + | |
| 5275 | + | |
| 5276 | + | |
| 5277 | + | |
| 5278 | + | |
| 5279 | + | |
| 5280 | + | |
| 5281 | + | |
| 5282 | + | |
| 5283 | + | |
| 5284 | + | |
| 5285 | + | |
| 5286 | + | |
| 5287 | + | |
| 5288 | + | |
| 5289 | + | |
| 5290 | + | |
| 5291 | + | |
| 5292 | + | |
| 5293 | + | |
| 5294 | + | |
| 5295 | + | |
5222 | 5296 |
| |
5223 | 5297 |
| |
5224 | 5298 |
| |
| |||
6433 | 6507 |
| |
6434 | 6508 |
| |
6435 | 6509 |
| |
| 6510 | + | |
| 6511 | + | |
| 6512 | + | |
6436 | 6513 |
| |
6437 | 6514 |
| |
6438 | 6515 |
| |
6439 | 6516 |
| |
6440 | 6517 |
| |
6441 | 6518 |
| |
6442 | 6519 |
| |
| 6520 | + | |
| 6521 | + | |
| 6522 | + | |
| 6523 | + | |
| 6524 | + | |
6443 | 6525 |
| |
6444 | 6526 |
| |
6445 | 6527 |
| |
| |||
6458 | 6540 |
| |
6459 | 6541 |
| |
6460 | 6542 |
| |
| 6543 | + | |
| 6544 | + | |
| 6545 | + | |
| 6546 | + | |
| 6547 | + | |
| 6548 | + | |
| 6549 | + | |
| 6550 | + | |
| 6551 | + | |
| 6552 | + | |
| 6553 | + | |
| 6554 | + | |
| 6555 | + | |
6461 | 6556 |
| |
6462 | 6557 |
| |
6463 | 6558 |
| |
| |||
6507 | 6602 |
| |
6508 | 6603 |
| |
6509 | 6604 |
| |
6510 |
| - | |
| 6605 | + | |
6511 | 6606 |
| |
6512 | 6607 |
| |
6513 | 6608 |
| |
| |||
6529 | 6624 |
| |
6530 | 6625 |
| |
6531 | 6626 |
| |
| 6627 | + | |
| 6628 | + | |
| 6629 | + | |
| 6630 | + | |
| 6631 | + | |
| 6632 | + | |
6532 | 6633 |
| |
6533 | 6634 |
| |
6534 | 6635 |
| |
| |||
6539 | 6640 |
| |
6540 | 6641 |
| |
6541 | 6642 |
| |
6542 |
| - | |
| 6643 | + | |
6543 | 6644 |
| |
6544 | 6645 |
| |
6545 | 6646 |
| |
6546 | 6647 |
| |
6547 |
| - | |
| 6648 | + | |
| 6649 | + | |
| 6650 | + | |
| 6651 | + | |
6548 | 6652 |
| |
6549 | 6653 |
| |
6550 | 6654 |
| |
|
0 commit comments
Comments
(0)