Skip to content

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

statement timeouts for anon and authenticated

Oliver Rice6b45b63d816a
diff --git a/docker/dockerfiles/postgres/00-initial-schema.sql b/docker/dockerfiles/postgres/00-initial-schema.sql
index a0b6303d5ec..ac346256d1f 100644
--- a/docker/dockerfiles/postgres/00-initial-schema.sql
+++ b/docker/dockerfiles/postgres/00-initial-schema.sql
@@ -24,3 +24,5 @@ alter default privileges in schema public grant all on tables to postgres, anon,
alter default privileges in schema public grant all on functions to postgres, anon, authenticated, service_role;
alter default privileges in schema public grant all on sequences to postgres, anon, authenticated, service_role;
+alter role anon set statement_timeout = '3s';
+alter role authenticated set statement_timeout = '8s';