Skip to content

Jppd 15 - #97

Open
reshke wants to merge 2 commits into
REL_15_STABLEfrom
jppd_15
Open

Jppd 15#97
reshke wants to merge 2 commits into
REL_15_STABLEfrom
jppd_15

Conversation

@reshke

@reshke reshke commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

No description provided.

hlinnaka added 2 commits July 21, 2026 08:53
We don't normally push down join quals into subqueries, because that would
require creating parameterized plans. However, if the plan is already
parameterized because it's LATERAL, we might as well push down any
additional join quals, that refer the same relations that are already
referenced within the subquery.

This changes the behavior of the sublevels_up parameters to
ReplaceVarsFromTargetList(). The targetlist entries used to replace vars are
no longer offset by that amount. I'm not sure what the original thinking
on it was, but all the existing callers passed sublevels_up = 0, so I hope
this is OK..

XXX: fixes by reshke
Plan subqueries a second time, to create parameterized plans with join
quals.

XXX: fixes by reshke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants