- Notifications
You must be signed in to change notification settings - Fork28
Commitaf6550d
committed
Sort dependent objects before reporting them in DROP ROLE.
Commit8aa9dd7 didn't quite finish the job in this area after all,because DROP ROLE has a code path distinct from DROP OWNED BY, andit was still reporting dependent objects in whatever order the indexscan returned them in.Buildfarm experience shows that index ordering of equal-keyed objects issignificantly less stable than before in the wake of using heap TIDs astie-breakers. So if we try to hide the unstable ordering by suppressingDETAIL reports, we're just going to end up having to do that for everyDROP that reports multiple objects. That's not great from a coverageor problem-detection standpoint, and it's something we'll inevitablyforget in future patches, leading to more iterations of fixing-an-unstable-result. So let's just bite the bullet and sort here too.Discussion:https://postgr.es/m/E1h6eep-0001Mw-Vd@gemulon.postgresql.org1 parent59ab3be commitaf6550d
File tree
2 files changed
+111
-25
lines changed- src
- backend/catalog
- test/regress/expected
2 files changed
+111
-25
lines changedLines changed: 109 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
77 | 84 |
| |
78 | 85 |
| |
79 | 86 |
| |
| |||
496 | 503 |
| |
497 | 504 |
| |
498 | 505 |
| |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
499 | 556 |
| |
500 | 557 |
| |
501 | 558 |
| |
| |||
531 | 588 |
| |
532 | 589 |
| |
533 | 590 |
| |
| 591 | + | |
| 592 | + | |
| 593 | + | |
534 | 594 |
| |
535 | 595 |
| |
536 | 596 |
| |
537 | 597 |
| |
538 | 598 |
| |
539 | 599 |
| |
540 | 600 |
| |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
541 | 605 |
| |
542 | 606 |
| |
543 | 607 |
| |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
544 | 612 |
| |
545 | 613 |
| |
546 | 614 |
| |
| |||
580 | 648 |
| |
581 | 649 |
| |
582 | 650 |
| |
583 |
| - | |
| 651 | + | |
584 | 652 |
| |
585 | 653 |
| |
586 | 654 |
| |
587 | 655 |
| |
588 |
| - | |
589 |
| - | |
590 |
| - | |
591 |
| - | |
592 |
| - | |
593 |
| - | |
594 |
| - | |
595 |
| - | |
596 |
| - | |
597 |
| - | |
598 |
| - | |
599 |
| - | |
600 |
| - | |
601 |
| - | |
| 656 | + | |
| 657 | + | |
602 | 658 |
| |
603 |
| - | |
| 659 | + | |
604 | 660 |
| |
605 |
| - | |
606 |
| - | |
607 |
| - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
608 | 665 |
| |
609 |
| - | |
610 |
| - | |
611 |
| - | |
612 |
| - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
613 | 671 |
| |
614 | 672 |
| |
615 | 673 |
| |
| |||
647 | 705 |
| |
648 | 706 |
| |
649 | 707 |
| |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
650 | 735 |
| |
651 | 736 |
| |
652 | 737 |
| |
| |||
670 | 755 |
| |
671 | 756 |
| |
672 | 757 |
| |
| 758 | + | |
673 | 759 |
| |
674 | 760 |
| |
675 | 761 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
131 |
| - | |
132 |
| - | |
| 131 | + | |
| 132 | + | |
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
|
0 commit comments
Comments
(0)