-
-
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
plan_filter.statement_cost_limit is not applied to anonymous queries #3045
Comments
possibly related: PostgREST/postgrest-docs#152 |
I don't think this is going to work at all, because This means that PostgREST can not do SUSET gucs will only work when set directly on the authenticator role. |
Actually, this could work with PG 15+, because you could do: GRANT SET ON PARAMETER plan_filter.statement_cost_limit TO authenticator; |
Right. We've moved on from applying superuser settings because of #2896. |
So, the |
There is also a |
Environment
I'm using Docker for Mac v4.24.0 on macOS v13.6.1 on an Apple Silicon M2 machine. I use
linux/amd64
images though.I'm using PostgREST 11.2.2 via Docker:
I'm running it against PostgreSQL 15 (custom Docker image that combines
postgis/postgis:15-3.3-alpine
withpg_plan_filter
).Description of issue
I cannot get the automatic role settings documented in #2561 to work with
pg_plan_filter
.I have imported my data into a database
gtfs_1699493108
and set up PostgREST as follows (shortened for readability):I then set timeout & cost limit on
web_anon
:The query run by PostgREST during startup results in the following:
When I query PostgREST anonymously:
curl 'http://localhost:4000/arrivals_departures?limit=10000' -f -L -v
it fails, with PostgreSQL showing the following logs:
Note that
statement_timeout = 500
is being set within the transaction, butplan_filter.statement_cost_limit = 500.0
is not being set.The text was updated successfully, but these errors were encountered: