diff options
author | Masahiko Sawada <msawada@postgresql.org> | 2025-02-06 11:35:51 -0800 |
---|---|---|
committer | Masahiko Sawada <msawada@postgresql.org> | 2025-02-06 11:35:51 -0800 |
commit | 9af2b3435844526ff503f2509c5246749b9c48b0 (patch) | |
tree | dddab4cf2a0f98ce7bb0cda5b959a416a5cc883d /src/fe_utils/string_utils.c | |
parent | 32770ea03247bc42b38ccc53b84711e0c13d1498 (diff) | |
download | postgresql-9af2b3435844526ff503f2509c5246749b9c48b0.tar.gz postgresql-9af2b3435844526ff503f2509c5246749b9c48b0.zip |
radixtree: Fix crash when non-creator begins iteration over shared tree.
Previously, if a backend that attached to a shared tree attempted to
start iteration, it resulted in a crash. This commit resolves the
issue by ensuring iter_context is created in RT_ATTACH().
This fix applies only to v17, where radixtree.h was introduced. In the
master branch, this issue was separately resolved by 960013f2a1, which
eliminated the iter_context entirely.
Reviewed-by: John Naylor
Discussion: https://postgr.es/m/CAD21AoBB2U47V=F+wQRB1bERov_of5=BOZGaybjaV8FLQyqG3Q@mail.gmail.com
Diffstat (limited to 'src/fe_utils/string_utils.c')
0 files changed, 0 insertions, 0 deletions