Skip to content

Role based dynamic schemas #3691

Answered by wolfgangwalther
cxt9 asked this question in Q&A
Aug 18, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

PERFORM set_config('pgrst.db_schemas', (

This only changes the setting for the current transaction / session. Once you NOTIFY, PostgREST will load the config value in an entirely different session, so that setting is not going to be there anymore.

You'll need to do something like ALTER ROLE <authenticator-role> SET pgrst.db_schemas ... instead and then do the NOTIFY.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@wolfgangwalther
Comment options

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