Re: BUG #19435: Error: "No relation entry for relid 2" Triggered by Complex Join with Self-Referencing Tables
Tender Wang <tndrwang@gmail.com>
From: Tender Wang <tndrwang@gmail.com>
To: Kirill Reshke <reshkekirill@gmail.com>
Cc: Alexander Korotkov <aekorotkov@gmail.com>,
Fujii Masao <masao.fujii@gmail.com>, ammmkilo@163.com, pgsql-bugs@lists.postgresql.org
Date: 2026-03-17T13:30:44Z
Lists: pgsql-bugs
Kirill Reshke <reshkekirill@gmail.com> 于2026年3月17日周二 21:24写道: > > On Tue, 17 Mar 2026 at 18:20, Tender Wang <tndrwang@gmail.com> wrote: > Yes, it looks like your analysis is valid. Will you share a patch for > updating `clause` ? > Sorry, it's already the middle of the night here, so I'm afraid I don't have much time to work on this right now. -- Thanks, Tender Wang
Commits
-
Further improve commentary about ChangeVarNodesWalkExpression()
- 6888658516a2 19 (unreleased) landed
- 8c73ab9da9f1 18.4 landed
-
Improve commentary about ChangeVarNodesWalkExpression().
- a0e0b3cc685a 18.4 landed
- 360dd6f7b4c5 19 (unreleased) landed
-
Fix self-join removal to update bare Var references in join clauses
- e8b9d6497469 18.4 landed
- 07b7a964d368 19 (unreleased) landed
-
Implement Self-Join Elimination
- fc069a3a6319 18.0 cited