-
Notifications
You must be signed in to change notification settings - Fork 408
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
Update bundled PostgreSQL to 16.4 #7804
Conversation
if ( | ||
isinstance(value, pgast.StringConstant) | ||
and isinstance(is_local, pgast.BooleanConstant) | ||
): | ||
if ( | ||
value.val == "view, foreign-table" | ||
and not is_local.val | ||
): | ||
return value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer not to do this here, because we are not checking the name of the setting being set. But to check that, we need the full query, because it is of this form:
SELECT set_config(name, ..., ...) FROM pg_setting WHERE name = '...'
I'll add a pre-resolving step that convert such SELECT set_config
s into SET
commands, which we do handle correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried that in #7810, but it turns out that if we compile SELECT set_config
into SET
, we need to inject a result set and CommandComplete message, which is hard/complex to do.
So I might abandon that effort and fix your approach instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will not abandon that effort, but just put it off until some later time.
For now, this workaround is good enough. Let's hope no one will use "view, foreign-table" setting value anywhere...
Uses tag: REL_16_4. Also updates our allowlist for `set_config` calls to support change introduced in 16.4 in postgres/postgres@66e9444 --------- Co-authored-by: Aljaž Mur Eržen <[email protected]>
Uses tag: REL_16_4. Also updates our allowlist for
set_config
calls to support change introduced in 16.4 in postgres/postgres@66e9444