Skip to content

Conversation

@taimoorzaeem
Copy link
Collaborator

@taimoorzaeem taimoorzaeem commented Dec 4, 2025

We don't allow accessing schemas "pg_catalog" and "information_schema". Instead of silently failing requests on these schemas, this now adds logging an error on startup when these schemas are found in db-schemas config.

Closes #4359.

  • Implementation
  • Tests
  • Docs

@taimoorzaeem taimoorzaeem marked this pull request as draft December 4, 2025 17:00
@taimoorzaeem
Copy link
Collaborator Author

Where should we document this? I am thinking in schemas.html#restricted-schemas or maybe in the config page?

@steve-chavez
Copy link
Member

Where should we document this? I am thinking in schemas.html#restricted-schemas or maybe in the config page?

Hm, I'm thinking it should be more noticeable, maybe at the begging of https://docs.postgrest.org/en/v14/references/api/schemas.html, likely with an important or warning note.

We don't allow accessing schemas "pg_catalog" and "information_schema".
Instead of silently failing requests on these schemas, this now adds
logging an error on startup when these schemas are found in `db-schemas`
config.

Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
@taimoorzaeem taimoorzaeem force-pushed the feat/add-warning-db-schmea branch from f8db730 to 7c1fdda Compare December 8, 2025 05:59
@taimoorzaeem taimoorzaeem marked this pull request as ready for review December 8, 2025 06:00
@taimoorzaeem taimoorzaeem added the enhancement a feature, ready for implementation label Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement a feature, ready for implementation

Development

Successfully merging this pull request may close these issues.

Emit warning when adding pg_catalog on db-schemas

2 participants