Repository navigation
Fix search_path used for planning DeferredChunkAppend chunk queries - #10818
Merged
Merged
Conversation
|
@pnthao, @natalya-aksman: please review this pull request.
|
Codecov Reportβ All modified and coverable lines are covered by tests. π’ Thoughts on this report? Let us know! |
DeferredChunkAppend planned each per-chunk query with search_path restricted to pg_catalog and pg_temp. Any user code that runs during planning saw that search_path, so unqualified names from other schemas could not be found. For example, inlining a SQL function whose body uses an extension operator in public failed with "operator does not exist". Restrict search_path only while parsing the per-chunk query and plan it with the caller's search_path. Fixes #10817
svenklemm
force-pushed
the
sven/dca_search_path
branch
from
October 14, 2026 07:59
faffb44 to
3212ca8
Compare
antekresic
approved these changes
Oct 14, 2026
natalya-aksman
approved these changes
Oct 14, 2026
Member
|
Automated backport to 2.30.x not done: the milestone 'v2.31.0' does not match the release branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DeferredChunkAppend planned each per-chunk query with search_path
restricted to pg_catalog and pg_temp. Any user code that runs during
planning saw that search_path, so unqualified names from other schemas
could not be found. For example, inlining a SQL function whose body
uses an extension operator in public failed with "operator does not
exist".
Restrict search_path only while parsing the per-chunk query and plan
it with the caller's search_path.
Fixes #10817