forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1ea4d9c
committed
vacuumdb: Skip temporary tables in query to build list of relations
Running vacuumdb with a non-superuser while another user has created atemporary table would lead to a mid-flight permission failure,interrupting the operation. vacuum_rel() skips temporary relations ofother backends, and it makes no sense for vacuumdb to know about theserelations, so let's switch it to ignore temporary relations entirely.Adding a qual in the query based on relpersistence simplifies thegeneration of its WHERE clause in vacuum_one_database(), per se theremoval of "has_where".Author: VaibhaveS, Michael PaquierReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/CAM_eQjwfAR=y3G1fGyS1U9FTmc+FyJm9amNfY2QCZBnDDbNPZg@mail.gmail.comBackpatch-through: 121 parent90f5412 commit1ea4d9c
1 file changed
+25
-15
lines changedLines changed: 25 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
501 | 501 |
| |
502 | 502 |
| |
503 | 503 |
| |
504 |
| - | |
505 | 504 |
| |
506 | 505 |
| |
507 | 506 |
| |
| |||
675 | 674 |
| |
676 | 675 |
| |
677 | 676 |
| |
678 |
| - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
679 | 681 |
| |
680 | 682 |
| |
681 | 683 |
| |
| |||
686 | 688 |
| |
687 | 689 |
| |
688 | 690 |
| |
| 691 | + | |
689 | 692 |
| |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
690 | 705 |
| |
691 | 706 |
| |
692 |
| - | |
| 707 | + | |
693 | 708 |
| |
694 | 709 |
| |
695 |
| - | |
696 |
| - | |
| 710 | + | |
697 | 711 |
| |
698 | 712 |
| |
699 | 713 |
| |
| |||
705 | 719 |
| |
706 | 720 |
| |
707 | 721 |
| |
708 |
| - | |
| 722 | + | |
709 | 723 |
| |
710 |
| - | |
711 |
| - | |
712 |
| - | |
| 724 | + | |
713 | 725 |
| |
714 | 726 |
| |
715 | 727 |
| |
| |||
722 | 734 |
| |
723 | 735 |
| |
724 | 736 |
| |
725 |
| - | |
| 737 | + | |
726 | 738 |
| |
727 | 739 |
| |
728 | 740 |
| |
729 | 741 |
| |
730 |
| - | |
731 |
| - | |
| 742 | + | |
732 | 743 |
| |
733 | 744 |
| |
734 | 745 |
| |
735 | 746 |
| |
736 | 747 |
| |
737 |
| - | |
| 748 | + | |
738 | 749 |
| |
739 | 750 |
| |
740 | 751 |
| |
741 | 752 |
| |
742 |
| - | |
743 |
| - | |
| 753 | + | |
744 | 754 |
| |
745 | 755 |
| |
746 | 756 |
| |
|
0 commit comments
Comments
(0)