Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: add new troubleshooting guide for schema reloading (#39412)

Tomás Pozo5bc616fa46a6
diff --git a/apps/docs/content/troubleshooting/refresh-postgrest-schema.mdx b/apps/docs/content/troubleshooting/refresh-postgrest-schema.mdx
new file mode 100644
index 00000000000..94465972a60
--- /dev/null
+++ b/apps/docs/content/troubleshooting/refresh-postgrest-schema.mdx
@@ -0,0 +1,33 @@
+---
+title = "Reload/refresh postgrest schema"
+topics = [
+ "database",
+]
+keywords = [
+ "schema",
+ "postgrest",
+]
+
+# Optionally, list the error messages associated with this issue.
+[[errors]]
+http_status_code = 400
+code = "bad_request"
+message = "Could not find a relationship between X and Y in the schema cache"
+
+---
+
+To refresh your PostgREST schema, go to your project **Dashboard**, and open the **SQL Editor**.
+
+Then, paste the following SQL statement:
+
+```sql
+NOTIFY pgrst, 'reload schema';
+```
+
+And click on **Run**.
+
+You should see a confirmation message under the **Results** tab:
+
+```
+Success. No rows returned
+```