You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a copy of a troubleshooting article on Supabase's docs site. It may be missing some details from the original. View the original article.
A schema should first be removed from the Exposed schemas in Data API settings before dropping it from the database.
If you encounter a PGRST002 error when making API requests, it can be that a schema still listed in the Data API configuration has been dropped from the database. PostgREST cannot build the schema cache if any schema defined in its db_schemas setting is missing.
How to resolve this issue:
Temporarily recreate the deleted schema to restore API connectivity.
Remove the target schema from the Exposed Schemas list and click Save.
Once the settings are saved, you can safely drop the schema from the database.
Manual Overrides
If you have manually executed ALTER ROLE authenticator SET pgrst.db_schemas, the Dashboard UI will no longer manage your schemas. You must manually update the role configuration:
ALTER ROLE authenticator SETpgrst.db_schemas='public, example_schema';
NOTIFY pgrst, 'reload config';
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
This is a copy of a troubleshooting article on Supabase's docs site. It may be missing some details from the original. View the original article.
A schema should first be removed from the Exposed schemas in Data API settings before dropping it from the database.
If you encounter a
PGRST002error when making API requests, it can be that a schema still listed in the Data API configuration has been dropped from the database. PostgREST cannot build the schema cache if any schema defined in itsdb_schemassetting is missing.How to resolve this issue:
Manual Overrides
If you have manually executed
ALTER ROLE authenticator SET pgrst.db_schemas, the Dashboard UI will no longer manage your schemas. You must manually update the role configuration:Beta Was this translation helpful? Give feedback.
All reactions