- Notifications
You must be signed in to change notification settings - Fork4.9k
Commite215166
committed
Use streaming read I/O in SP-GiST vacuuming
Like69273b8 did for GiST vacuuming, make SP-GiST vacuum use theread stream API for vacuuming physically contiguous index pages.Concurrent insertions may cause SP-GiST index tuples to be redirected.While vacuuming, these are added to a pending list which is laterprocessed to ensure no dead tuples are left behind. Pages containingsuch tuples are still read by directly calling ReadBuffer() and do notuse the read stream API.Author: Andrey M. Borodin <x4mmm@yandex-team.ru>Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>Discussion:https://postgr.es/m/37432403-8657-403B-9CDF-5A642BECDD81%40yandex-team.ru1 parente51ca40 commite215166
1 file changed
+42
-13
lines changedLines changed: 42 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
| |||
618 | 619 |
| |
619 | 620 |
| |
620 | 621 |
| |
621 |
| - | |
| 622 | + | |
622 | 623 |
| |
623 | 624 |
| |
624 |
| - | |
| 625 | + | |
625 | 626 |
| |
626 | 627 |
| |
627 |
| - | |
628 |
| - | |
629 |
| - | |
630 |
| - | |
631 |
| - | |
632 | 628 |
| |
633 | 629 |
| |
634 | 630 |
| |
| |||
805 | 801 |
| |
806 | 802 |
| |
807 | 803 |
| |
808 |
| - | |
809 |
| - | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
810 | 807 |
| |
811 | 808 |
| |
812 | 809 |
| |
| |||
824 | 821 |
| |
825 | 822 |
| |
826 | 823 |
| |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
827 | 832 |
| |
828 | 833 |
| |
829 | 834 |
| |
| |||
833 | 838 |
| |
834 | 839 |
| |
835 | 840 |
| |
836 |
| - | |
837 | 841 |
| |
838 | 842 |
| |
839 | 843 |
| |
| |||
844 | 848 |
| |
845 | 849 |
| |
846 | 850 |
| |
847 |
| - | |
| 851 | + | |
848 | 852 |
| |
| 853 | + | |
| 854 | + | |
| 855 | + | |
849 | 856 |
| |
850 |
| - | |
| 857 | + | |
851 | 858 |
| |
852 |
| - | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
853 | 871 |
| |
854 | 872 |
| |
855 | 873 |
| |
856 | 874 |
| |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
857 | 884 |
| |
858 | 885 |
| |
| 886 | + | |
| 887 | + | |
859 | 888 |
| |
860 | 889 |
| |
861 | 890 |
| |
|
0 commit comments
Comments
(0)