diff --git a/apps/docs/content/guides/functions/connect-to-postgres.mdx b/apps/docs/content/guides/functions/connect-to-postgres.mdx index 97fed9a6490..22f15932775 100644 --- a/apps/docs/content/guides/functions/connect-to-postgres.mdx +++ b/apps/docs/content/guides/functions/connect-to-postgres.mdx @@ -43,6 +43,10 @@ This enables: - Consistent error handling - TypeScript support for database schema +`supabase-js` queries go through the [Data API](/docs/guides/api), which serves only the schemas listed under **Exposed schemas** in your [Data API settings](/dashboard/project/_/integrations/data_api/settings). The `public` schema is exposed by default. To expose other schemas, see [Using custom schemas](/docs/guides/api/using-custom-schemas). + +`supabase-js` can't query system catalogs such as `pg_catalog.pg_tables`. The Data API never serves tables or views in `pg_catalog` or `information_schema`, even if you expose those schemas. To run catalog queries or other raw SQL, connect with a Postgres client, as shown in [Using a Postgres client](#using-a-postgres-client). + --- ## Using a Postgres client