Skip to content

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

Invalid SQL syntax in rls bypass section (#27738)

GaryAustin185de650034ed
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 56fccd327a4..039dcf14b4a 100644
--- a/apps/docs/content/guides/database/postgres/row-level-security.mdx
+++ b/apps/docs/content/guides/database/postgres/row-level-security.mdx
@@ -269,7 +269,7 @@ Supabase will adhere to the RLS policy of the signed-in user, even if the client
You can also create new [Postgres Roles](/docs/guides/database/postgres/roles) which can bypass Row Level Security using the "bypass RLS" privilege:
```sql
-grant bypassrls on "table_name" to "role_name";
+alter role "role_name" with bypassrls;
```
This can be useful for system-level access. You should _never_ share login credentials for any Postgres Role with this privilege.