-
-
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
Apply all function settings as transaction-scoped settings #3061
Comments
@steve-chavez Thoughts on implementing this? This would involve looking up and parsing all settings for each function which would mean that we have to keep a table for these settings and apply it. For postgrest/src/PostgREST/SchemaCache.hs Lines 433 to 436 in cbfff28
and also added this new setting to |
@taimoorzaeem No, it should only be the function settings - i.e. the configs that are set when doing
postgrest/src/PostgREST/Config/Database.hs Lines 132 to 168 in 0c65bf4
Maybe: type FunctionSettings = (HM.HashMap ByteString (HM.HashMap ByteString ByteString)) |
Problem
Currently, only
statement_timeout
is applied https://postgrest.org/en/latest/references/transactions.html#function-settings.Applying other settings like
plan_filter.statement_cost_limit
is not possible.Solution
Apply all function settings.
Notes
Not necessary to test with
plan_filter.statement_cost_limit
, we can use some others like:postgrest/test/io/fixtures.sql
Lines 19 to 20 in 91d5385
Also consider that applying some settings require privileges, see #3058
The text was updated successfully, but these errors were encountered: