From 6b45b63d816aa5dcefcc50810a323021868b68bf Mon Sep 17 00:00:00 2001 From: Oliver Rice Date: Mon, 30 Aug 2021 00:21:15 -0500 Subject: [PATCH] statement timeouts for anon and authenticated --- docker/dockerfiles/postgres/00-initial-schema.sql | 2 ++ 1 file changed, 2 insertions(+) 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';