Skip to content
Discussion options

You must be logged in to vote

SELECT set_config('pgrst.db_aggregates_enabled', 'true', false)

The above alone won't work, you need to put it inside a function as described on https://postgrest.org/en/v12/references/configuration.html#in-database-configuration.

Alternatively if you have superuser you can do ALTER ROLE authenticator SET pgrst.db_aggregates_enabled TO true.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@akshaysasidrn
Comment options

Answer selected by akshaysasidrn
Comment options

You must be logged in to vote
2 replies
@laurenceisla
Comment options

@akshaysasidrn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants