- Notifications
You must be signed in to change notification settings - Fork28
Commit9a75803
committed
Remove CatalogCacheFlushRelation, and the reloidattr infrastructure that was
needed by nothing else.The restructuring I just finished doing on cache management exposed to me howsilly this routine was. Its function was to go into the catcache and blowaway all entries related to a given relation when there was a relcache flushon that relation. However, there is no point in removing a catcache entryif the catalog row it represents is still valid --- and if it isn't valid,there must have been a catcache entry flush on it, because that's triggereddirectly by heap_update or heap_delete on the catalog row. So this routineaccomplished nothing except to blow away valid cache entries that we'd verylikely be wanting in the near future to help reconstruct the relcache entry.Dumb.On top of which, it required a subtle and easy-to-get-wrong attribute insyscache definitions, ie, the column containing the OID of the relatedrelation if any. Removing that is a very useful maintenance simplification.1 parent68446b2 commit9a75803
File tree
4 files changed
+6
-167
lines changed- src
- backend/utils/cache
- include/utils
4 files changed
+6
-167
lines changedLines changed: 1 addition & 88 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
672 | 672 |
| |
673 | 673 |
| |
674 | 674 |
| |
675 |
| - | |
676 |
| - | |
677 |
| - | |
678 |
| - | |
679 |
| - | |
680 |
| - | |
681 |
| - | |
682 |
| - | |
683 |
| - | |
684 |
| - | |
685 |
| - | |
686 |
| - | |
687 |
| - | |
688 |
| - | |
689 |
| - | |
690 |
| - | |
691 |
| - | |
692 |
| - | |
693 |
| - | |
694 |
| - | |
695 |
| - | |
696 |
| - | |
697 |
| - | |
698 |
| - | |
699 |
| - | |
700 |
| - | |
701 |
| - | |
702 |
| - | |
703 |
| - | |
704 |
| - | |
705 |
| - | |
706 |
| - | |
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 |
| - | |
735 |
| - | |
736 |
| - | |
737 |
| - | |
738 |
| - | |
739 |
| - | |
740 |
| - | |
741 |
| - | |
742 |
| - | |
743 |
| - | |
744 |
| - | |
745 |
| - | |
746 |
| - | |
747 |
| - | |
748 |
| - | |
749 |
| - | |
750 |
| - | |
751 |
| - | |
752 |
| - | |
753 |
| - | |
754 |
| - | |
755 |
| - | |
756 |
| - | |
757 |
| - | |
758 |
| - | |
759 |
| - | |
760 | 675 |
| |
761 | 676 |
| |
762 | 677 |
| |
| |||
820 | 735 |
| |
821 | 736 |
| |
822 | 737 |
| |
823 |
| - | |
824 | 738 |
| |
825 | 739 |
| |
826 | 740 |
| |
| |||
884 | 798 |
| |
885 | 799 |
| |
886 | 800 |
| |
887 |
| - | |
888 | 801 |
| |
889 | 802 |
| |
890 | 803 |
| |
|
Lines changed: 1 addition & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1916 | 1916 |
| |
1917 | 1917 |
| |
1918 | 1918 |
| |
1919 |
| - | |
1920 |
| - | |
1921 |
| - | |
1922 |
| - | |
1923 |
| - | |
1924 |
| - | |
1925 |
| - | |
1926 | 1919 |
| |
1927 | 1920 |
| |
1928 | 1921 |
| |
| |||
2468 | 2461 |
| |
2469 | 2462 |
| |
2470 | 2463 |
| |
2471 |
| - | |
2472 |
| - | |
2473 | 2464 |
| |
2474 | 2465 |
| |
2475 | 2466 |
| |
|
0 commit comments
Comments
(0)