- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit9eb5607
committed
Refactor checks for deleted GiST pages.
The explicit check in gistScanPage() isn't currently really necessary, asa deleted page is always empty, so the loop would fall through withoutdoing anything, anyway. But it's a marginal optimization, and it gives anice place to attach a comment to explain how it works.Backpatch to v12, where GiST page deletion was introduced.Reviewed-by: Andrey BorodinDiscussion:https://www.postgresql.org/message-id/835A15A5-F1B4-4446-A711-BF48357EB602%40yandex-team.ru1 parent1a72124 commit9eb5607
2 files changed
+29
-25
lines changedLines changed: 15 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
709 | 709 |
| |
710 | 710 |
| |
711 | 711 |
| |
712 |
| - | |
713 |
| - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
714 | 715 |
| |
715 | 716 |
| |
716 |
| - | |
717 |
| - | |
718 |
| - | |
719 |
| - | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
720 | 721 |
| |
721 | 722 |
| |
722 | 723 |
| |
| |||
735 | 736 |
| |
736 | 737 |
| |
737 | 738 |
| |
738 |
| - | |
739 |
| - | |
740 |
| - | |
741 | 739 |
| |
742 | 740 |
| |
743 | 741 |
| |
| |||
858 | 856 |
| |
859 | 857 |
| |
860 | 858 |
| |
861 |
| - | |
862 |
| - | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
863 | 862 |
| |
864 | 863 |
| |
865 |
| - | |
866 |
| - | |
| 864 | + | |
| 865 | + | |
867 | 866 |
| |
868 | 867 |
| |
869 | 868 |
| |
| |||
872 | 871 |
| |
873 | 872 |
| |
874 | 873 |
| |
875 |
| - | |
876 |
| - | |
877 |
| - | |
878 |
| - | |
879 |
| - | |
880 |
| - | |
881 |
| - | |
882 |
| - | |
883 |
| - | |
884 |
| - | |
885 |
| - | |
886 |
| - | |
887 | 874 |
| |
888 | 875 |
| |
889 | 876 |
| |
| |||
947 | 934 |
| |
948 | 935 |
| |
949 | 936 |
| |
| 937 | + | |
| 938 | + | |
| 939 | + | |
950 | 940 |
| |
951 | 941 |
| |
952 | 942 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
377 | 377 |
| |
378 | 378 |
| |
379 | 379 |
| |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
380 | 394 |
| |
381 | 395 |
| |
382 | 396 |
| |
|
0 commit comments
Comments
(0)