- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitac88898
committed
Improve pg_dump/pg_restore --create --if-exists logic.
Teach it not to complain if the dropStmt attached to an archive entryis actually spelled CREATE OR REPLACE VIEW, since that will happen due toan upcoming bug fix. Also, if it doesn't recognize a dropStmt, have itprint a WARNING and then emit the dropStmt unmodified. That seems like amuch saner behavior than Assert'ing or dumping core due to a null-pointerdereference, which is what would happen before :-(.Back-patch to 9.4 where this option was introduced.Discussion: <19092.1479325184@sss.pgh.pa.us>1 parentfcf70e0 commitac88898
1 file changed
+32
-16
lines changedLines changed: 32 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
521 | 521 |
| |
522 | 522 |
| |
523 | 523 |
| |
524 |
| - | |
525 | 524 |
| |
526 | 525 |
| |
527 | 526 |
| |
528 | 527 |
| |
529 | 528 |
| |
530 | 529 |
| |
531 | 530 |
| |
532 |
| - | |
533 |
| - | |
534 | 531 |
| |
535 |
| - | |
| 532 | + | |
536 | 533 |
| |
537 | 534 |
| |
538 | 535 |
| |
| |||
549 | 546 |
| |
550 | 547 |
| |
551 | 548 |
| |
552 |
| - | |
553 |
| - | |
554 |
| - | |
555 |
| - | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
556 | 559 |
| |
557 | 560 |
| |
558 | 561 |
| |
559 | 562 |
| |
560 |
| - | |
| 563 | + | |
| 564 | + | |
561 | 565 |
| |
562 | 566 |
| |
563 | 567 |
| |
| 568 | + | |
| 569 | + | |
| 570 | + | |
564 | 571 |
| |
565 | 572 |
| |
566 | 573 |
| |
| |||
570 | 577 |
| |
571 | 578 |
| |
572 | 579 |
| |
573 |
| - | |
574 | 580 |
| |
575 |
| - | |
576 |
| - | |
577 |
| - | |
578 |
| - | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
579 | 596 |
| |
580 | 597 |
| |
581 | 598 |
| |
582 | 599 |
| |
583 | 600 |
| |
584 |
| - | |
585 |
| - | |
| 601 | + | |
586 | 602 |
| |
587 | 603 |
| |
588 | 604 |
| |
|
0 commit comments
Comments
(0)