Use caller's memory context for radix tree iteration state
John Naylor <john.naylor@postgresql.org>
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.com
Files
| Path | Change | +/− |
|---|---|---|
| src/include/lib/radixtree.h | modified | +3 −12 |
Discussion
- Fix crash when non-creator being an iteration on shared radix tree 10 messages · 2024-12-17 → 2025-01-06