postgrest-docs
postgrest-docs copied to clipboard
Having more than one internal schema on schema isolation is confusing
Problem
Related to https://postgrest.org/en/stable/explanations/schema_isolation.html
See: https://matrix.to/#/!YGChDzXeYxtlBZqVsc:gitter.im/$V_mpHPVIPg_QJ2YMWWu7s3K5d1_WGmbcBwrdm2oaRxU?via=gitter.im&via=matrix.org&via=matrix.freyachat.eu
A PostgREST instance exposes all the tables, views, and stored procedures of a single PostgreSQL schema(a namespace of database objects). This means private data or implementation details can go I think I understand using an 'api' as the schema that is exposed to the outside work. It makes sense to have a separate schema for the actual implementation. I do not understand why you would have more than one (core + internal + private). ... more that one implementation schema. My assumption is that "core", "internal" and "private" are just examples of names where your implementation would go. Is this correct?
Solution
Just have one internal schema. Maybe add another one for "extensions".