Skip to content

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

Update functions.mdx

Timo Eppa6fa13166821
diff --git a/web/docs/guides/database/functions.mdx b/web/docs/guides/database/functions.mdx
index 87cd1cd3c5e..5dc2f492065 100644
--- a/web/docs/guides/database/functions.mdx
+++ b/web/docs/guides/database/functions.mdx
@@ -312,7 +312,7 @@ end;
$$;
```
-It is best practice to use `security invoker` (which is also the default). If you ever use `security invoker`, you _must_ set the `search_path`.
+It is best practice to use `security invoker` (which is also the default). If you ever use `security definer`, you _must_ set the `search_path`.
This limits the potential damage if you allow access to schemas which the user executing the function should not have.
## Resources