The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: add workaround to avoid noisy logs when PostgREST is disabled (#48021)
Laurence Isla56946d8171d8
diff --git a/apps/docs/content/troubleshooting/schema-pg_pgrst_no_exposed_schemas-does-not-exist.mdx b/apps/docs/content/troubleshooting/schema-pg_pgrst_no_exposed_schemas-does-not-exist.mdxindex 41e41acd67e..3124757bbf0 100644--- a/apps/docs/content/troubleshooting/schema-pg_pgrst_no_exposed_schemas-does-not-exist.mdx+++ b/apps/docs/content/troubleshooting/schema-pg_pgrst_no_exposed_schemas-does-not-exist.mdx@@ -19,3 +19,38 @@ PostgREST logs showing the error:- Currently, we don't really shutdown PostgREST when the Data API is disabled. You will see a schema called `pg_pgrst_no_exposed_schemas` added in the exposed schemas.- This should not adversely affect the project, although it may result in additional entries in your logs.- We're aware of this issue and are working on it.++## Workaround++To stop the missing-schema log entries:++1. Open the SQL Editor.+2. Run the following statements:++ ```sql+ -- Create a schema with nothing inside+ create schema pgrst_no_exposed_schemas;++ -- Set the db-schemas configuration+ alter role authenticator set pgrst.db_schemas = 'pgrst_no_exposed_schemas';++ -- Reload PostgREST's schema cache and configuration+ notify pgrst;+ ```++PostgREST now exposes an empty schema, which stops the missing-schema errors.++## Re-enable the Data API++Before you re-enable the data API:++1. Open the SQL Editor.+2. Run the following statements:++ ```sql+ -- Reset the db-schemas configuration+ alter role authenticator reset pgrst.db_schemas;++ -- Reload PostgREST's schema cache and configuration+ notify pgrst;+ ```