Fix the way SJE removes references from PHVs
Alexander Korotkov <akorotkov@postgresql.org>
Fix the way SJE removes references from PHVs Add missing replacement of relids in phv->phexpr. Also, remove extra replace_relid() over phv->phrels. Reported-by: Zuming Jiang Bug: #18187 Discussion: https://postgr.es/m/flat/18187-831da249cbd2ff8e%40postgresql.org Author: Richard Guo Reviewed-by: Andrei Lepikhov
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/plan/analyzejoins.c | modified | +2 −2 |
| src/test/regress/expected/join.out | modified | +19 −0 |
| src/test/regress/sql/join.sql | modified | +8 −0 |
Discussion
Cited messages not in the archive:
flat/18187-831da249cbd2ff8e@postgresql.org