From 29fc0ab7b030df98f0b059ea7d7facf402c15ca3 Mon Sep 17 00:00:00 2001 From: TheOtherBrian1 <91111415+TheOtherBrian1@users.noreply.github.com> Date: Tue, 27 Feb 2024 11:43:28 -0500 Subject: [PATCH] Added note about the authenticator role in relation to the anon and authenticated ones --- apps/docs/pages/guides/database/postgres/configuration.mdx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/docs/pages/guides/database/postgres/configuration.mdx b/apps/docs/pages/guides/database/postgres/configuration.mdx index 32a2423354f..d27f04c33eb 100644 --- a/apps/docs/pages/guides/database/postgres/configuration.mdx +++ b/apps/docs/pages/guides/database/postgres/configuration.mdx @@ -21,6 +21,7 @@ FROM pg_roles WHERE rolname IN ( 'anon', 'authenticated', + 'authenticator', 'postgres', 'service_role' ); @@ -46,9 +47,13 @@ npx supabase --experimental --project-ref postgres-config upd The timeout values were picked as a reasonable default for the majority of use-cases, but can be modified using the [`alter role`](https://www.postgresql.org/docs/current/sql-alterrole.html) statement: + +When updating either the `anon` or `authenticated` role, set the `authenticator` role to the greater timeout value between the two. + + ```sql --- For API users alter role authenticated set statement_timeout = '15s'; +alter role authenticator set statement_timeout = '15s'; ``` You can also update the statement timeout for a session: