Skip to content

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

Add caution on Update Policy section for need to create Select Policy (#28678)

Bulut Yerli1c1b4c815de3
diff --git a/apps/docs/content/guides/database/postgres/row-level-security.mdx b/apps/docs/content/guides/database/postgres/row-level-security.mdx
index 1059b40d554..26ced6b8455 100644
--- a/apps/docs/content/guides/database/postgres/row-level-security.mdx
+++ b/apps/docs/content/guides/database/postgres/row-level-security.mdx
@@ -172,6 +172,12 @@ with check ( (select auth.uid()) = user_id ); -- checks if the new row complies
If no `with check` expression is defined, then the `using` expression will be used both to determine which rows are visible (normal USING case) and which new rows will be allowed to be added (WITH CHECK case).
+<Admonition type="caution">
+
+To perform an `UPDATE` operation, a corresponding [`SELECT` policy](#select-policies) is required. Without a `SELECT` policy, the `UPDATE` operation will not work as expected.
+
+</Admonition>
+
### DELETE policies
You can specify delete policies with the `using` clause.