Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some obscure optional bugs in the presence of tuple projections #5610

Merged
merged 1 commit into from Jun 7, 2023

Conversation

msullivan
Copy link
Member

When attaching a path in the scope tree, the detection of whether the
target node was optional was insufficient. It only checked the node
itself, but needs to check all the way to the factoring point.
I think that logic had forgotten about BRANCHes that weren't FENCEs.

This came up in a branch where I was experimenting with always
BRANCHing function arguments as a way to validate sometimes
branching function arguments to produce code that hits ORDER BY
indexes in complex pgvector cases.

When attaching a path in the scope tree, the detection of whether the
*target* node was optional was insufficient. It only checked the node
itself, but needs to check all the way to the factoring point.
I think that logic had forgotten about BRANCHes that weren't FENCEs.

This came up in a branch where I was experimenting with always
BRANCHing function arguments as a way to validate *sometimes*
branching function arguments to produce code that hits ORDER BY
indexes in complex pgvector cases.
@msullivan msullivan merged commit 29ef5a1 into master Jun 7, 2023
21 checks passed
@msullivan msullivan deleted the opt-branch branch June 7, 2023 03:01
msullivan added a commit that referenced this pull request Jun 7, 2023
…5610)

When attaching a path in the scope tree, the detection of whether the
*target* node was optional was insufficient. It only checked the node
itself, but needs to check all the way to the factoring point.
I think that logic had forgotten about BRANCHes that weren't FENCEs.

This came up in a branch where I was experimenting with always
BRANCHing function arguments as a way to validate *sometimes*
branching function arguments to produce code that hits ORDER BY
indexes in complex pgvector cases.
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.

None yet

2 participants