Re: Wrong results with right-semi-joins
Richard Guo <guofenglinux@gmail.com>
From: Richard Guo <guofenglinux@gmail.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2024-12-09T12:17:03Z
Lists: pgsql-hackers
On Tue, Dec 3, 2024 at 5:56 PM Richard Guo <guofenglinux@gmail.com> wrote: > I've traced the root cause to ExecReScanHashJoin, where we neglect to > reset the inner-tuple match flags in the hash table for right-semi > joins when reusing the hash table. It was my oversight in commit > aa86129e1. Attached is patch to fix it. Pushed. Thanks Richard
Commits
-
Improve the test case from 5668a857d
- d8f335156c57 18.0 landed
-
Fix right-semi-joins in HashJoin rescans
- 5668a857de4f 18.0 landed
-
Support "Right Semi Join" plan shapes
- aa86129e19d7 18.0 cited