Skip to content

Jppd - #90

Open
reshke wants to merge 5 commits into
masterfrom
jppd
Open

Jppd#90
reshke wants to merge 5 commits into
masterfrom
jppd

Conversation

@reshke

@reshke reshke commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

reshke and others added 2 commits July 1, 2026 06:40
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.

Rebase-by: reshke <reshke@double.cloud>
reshke and others added 3 commits July 2, 2026 07:18
Plan subqueries a second time, to create parameterized plans with join
quals.
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