mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 08:09:11 +03:00
Added note about the authenticator role in relation to the anon and authenticated ones
This commit is contained in:
1 parent
475dfb3063
commit
29fc0ab7b0
1 file changed
+6
-1
@@ -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 <YOUR 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:
|
||||
|
||||
<Admonition type="note" label="Self hosting">
|
||||
When updating either the `anon` or `authenticated` role, set the `authenticator` role to the greater timeout value between the two.
|
||||
</Admonition>
|
||||
|
||||
```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:
|
||||
|
||||
Reference in new issue
Block a user