Commit 960013f
committed
Use caller's memory context for radix tree iteration state
Typically only one iterator is present at any time, so it's overkill
to devote an entire context for this. Get rid of it and use the
caller's context.
This is tidy-up work, so no backpatch in this form. However, a
hypothetical extension to v17 that tried to start iteration from
an attaching backend would result in a crash, so that'll be fixed
separately in a way that doesn't change behavior in core.
Patch by me, reported and reviewed by Masahiko Sawada
Discussion: https://postgr.es/m/CAD21AoBB2U47V=F+wQRB1bERov_of5=BOZGaybjaV8FLQyqG3Q@mail.gmail.com1 parent 9a8313d commit 960013f
1 file changed
+3
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
723 | 722 | | |
724 | 723 | | |
725 | 724 | | |
| |||
1836 | 1835 | | |
1837 | 1836 | | |
1838 | 1837 | | |
1839 | | - | |
1840 | | - | |
1841 | | - | |
1842 | | - | |
1843 | | - | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
1847 | 1838 | | |
1848 | 1839 | | |
1849 | 1840 | | |
| |||
2075 | 2066 | | |
2076 | 2067 | | |
2077 | 2068 | | |
2078 | | - | |
| 2069 | + | |
| 2070 | + | |
2079 | 2071 | | |
2080 | 2072 | | |
2081 | 2073 | | |
| |||
2086 | 2078 | | |
2087 | 2079 | | |
2088 | 2080 | | |
2089 | | - | |
2090 | | - | |
| 2081 | + | |
2091 | 2082 | | |
2092 | 2083 | | |
2093 | 2084 | | |
| |||
0 commit comments