Supabase에는 여러 레벨(세션, 기능, 글로벌, 역할)에서 각각의 타임아웃 값을 설정해줄 수 있다.
timeout 설정에서의 역할은 anon, authenticated, service_role, postgres로 나뉜다.
https://supabase.com/docs/guides/database/postgres/roles
service_role이 필요anon: 3초authenticated: 8초service_role: 없음 (api에 의해 60초로 제한)postgres: 없음 (글로벌 타임아웃에 의해 2분으로 제한)alter role example_role set statement_timeout = '10min'; -- could also use seconds '10s'
변경 사항을 반영하기 위해 postgREST를 다시 로드해야 함
NOTIFY pgrst, 'reload config';
select
rolname,
rolconfig
from pg_roles
where
rolname in (
'anon',
'authenticated',
'postgres',
'service_role'
-- ,<ANY CUSTOM ROLES>
);
```역할별 타임아웃