Skip to content

Single Schema vs. Multi Schema #3692

Discussion options

You must be logged in to vote

Hi guys, Based on this link, I've been assuming PostgREST is designed to only work with a single schema. However, this other link explains that a single PostgREST instance can be configured to access multiple schemas.

In a way, both are true.

PostgREST will always work with a single schema only, but you can change per request which schema to use.

What this means is, that when you expose multiple schemas, you can't cross-reference any objects (i.e. via embedding etc.) from other schemas.

Personally, I think the way we currently expose multiple schemas is... annoying to deal with and not really that helpful. There is discussion in #2157 and #2166 around that.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NickEmpetvee
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