aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvalidate.c
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2024-10-30 13:43:49 -0400
committerPeter Geoghegan <pg@bowt.ie>2024-10-30 13:43:49 -0400
commit81a25790f1f66319b4f088148b97dbb8badd4907 (patch)
tree51ff6817f7dbc11dab4fb69fbcb3d34932820f9c /src/backend/access/gist/gistvalidate.c
parent849110dd3eec3e21c358e24f11c6d501d05eee72 (diff)
downloadpostgresql-81a25790f1f66319b4f088148b97dbb8badd4907.tar.gz
postgresql-81a25790f1f66319b4f088148b97dbb8badd4907.zip
Clarify nbtree array exhaustion comments.
Strictly speaking, we only need to make sure to leave the scan's array keys in their final positions (final for the current scan direction) to handle SAOP array exhaustion because btgettuple might only return a subset of the items for the final page (final for the current scan direction), before the scan changes direction. While it's typical for so->currPos to be invalidated shortly after the scan's arrays are first exhausted, and while so->currPos invalidation does obviate the need to leave the scan's arrays in any particular state, we can't rely on any of that actually happening when handling array exhaustion. Adjust comments to make all of that a lot clearer. Oversight in commit 5bf748b8, which enhanced nbtree ScalarArrayOp execution.
Diffstat (limited to 'src/backend/access/gist/gistvalidate.c')
0 files changed, 0 insertions, 0 deletions