-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat: add config db-hoisted-tx-settings to allow only hoisted function settings #3358
Conversation
f817e2e
to
baaa975
Compare
It appears that the test case is failing, however, the test passes when run with |
You could try to make the RPC plpgsql instead of SQL to make sure to avoid any inlining - although that should not happen in this case anyway. Or maybe some other test sets the statement timeout to Not exactly sure what happens. |
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.
It seems like you need to update the pytest snapshot for schema cache, too.
Thanks for this suggestion. I tried the changing the value to My guess is that |
baaa975
to
81aec84
Compare
The more likely explanation is that some other test is leaking it's settings. Right, we have this in another test: # reload statement_timeout with NOTIFY
response = postgrest.session.post(
"/rpc/change_role_statement_timeout", data={"timeout": "5s"}
)
assert response.status_code == 204 This test needs to clean up behind and reset the timeout... |
81aec84
to
6ab54f4
Compare
6ab54f4
to
645c9af
Compare
645c9af
to
34bf8c5
Compare
To unblock v12.2.0 (#3501), just rebased and addressed the latest reviews. |
34bf8c5
to
529fa15
Compare
test/io/db_config.sql
Outdated
@@ -23,6 +23,7 @@ ALTER ROLE db_config_authenticator SET pgrst.openapi_server_proxy_uri = 'https:/ | |||
ALTER ROLE db_config_authenticator SET pgrst.server_cors_allowed_origins = 'http://origin.com'; | |||
ALTER ROLE db_config_authenticator SET pgrst.server_timing_enabled = 'false'; | |||
ALTER ROLE db_config_authenticator SET pgrst.server_trace_header = 'CF-Ray'; | |||
ALTER ROLE db_config_authenticator SET pgrst.db_hoisted_tx_settings = 'work_mem'; |
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.
This should be the last one before merging. The comment mentions:
-- these settings will override the values in configs/no-defaults.config, so they must be different
So this should be different from the value in no-defaults.config
to test that it's actually overriding it.
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.
Ok done.
Btw this whole workflow is double plus ungood, adding a config option is always painful.
This and #3481 (comment) tells us the whole Config handling needs reworking.
529fa15
to
39b7825
Compare
Fixes #3242.
@steve-chavez @laurenceisla @wolfgangwalther Even though I have applied the filter for function settings using the new config, but the setting is still being applied in
io tests
. Am I testing it right?