summaryrefslogtreecommitdiff
path: root/src/backend/storage/ipc
diff options
context:
space:
mode:
authorRichard Guo2024-12-09 11:36:23 +0000
committerRichard Guo2024-12-09 11:36:23 +0000
commit5668a857de4f3f12066b2bbc626b77be4fc95ee5 (patch)
treeccc5d2fb4f3d5b217f7e1e57338c87aa81b212ac /src/backend/storage/ipc
parentf0c569d7151532fbc9c016b01af49f04a9fb5278 (diff)
Fix right-semi-joins in HashJoin rescans
When resetting a HashJoin node for rescans, if it is a single-batch join and there are no parameter changes for the inner subnode, we can just reuse the existing hash table without rebuilding it. However, for join types that depend on the inner-tuple match flags in the hash table, we need to reset these match flags to avoid incorrect results. This applies to right, right-anti, right-semi, and full joins. When I introduced "Right Semi Join" plan shapes in aa86129e1, I failed to reset the match flags in the hash table for right-semi joins in rescans. This oversight has been shown to produce incorrect results. This patch fixes it. Author: Richard Guo Discussion: https://postgr.es/m/CAMbWs4-nQF9io2WL2SkD0eXvfPdyBc9Q=hRwfQHCGV2usa0jyA@mail.gmail.com
Diffstat (limited to 'src/backend/storage/ipc')
0 files changed, 0 insertions, 0 deletions