Skip to content

Commit f7dff1d

Browse files
authored
fix: lift pg statement_timeout (#1773)
1 parent 6962915 commit f7dff1d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/api/db/config.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ BEGIN
1111
EXECUTE 'ALTER DATABASE ' || current_database() || ' SET jit = on';
1212
EXECUTE 'ALTER DATABASE ' || current_database() || ' SET idle_in_transaction_session_timeout = ''1min''';
1313
EXECUTE 'ALTER DATABASE ' || current_database() || ' SET lock_timeout = ''1min''';
14-
EXECUTE 'ALTER DATABASE ' || current_database() || ' SET statement_timeout = ''30s''';
14+
EXECUTE 'ALTER DATABASE ' || current_database() || ' SET statement_timeout = ''3min''';
1515
END
1616
$$;

packages/api/db/functions.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ $$
2424
DECLARE
2525
inserted_upload_id BIGINT;
2626
BEGIN
27+
SET LOCAL statement_timeout = '30s';
2728
insert into content (cid, dag_size, updated_at, inserted_at)
2829
values (data ->> 'content_cid',
2930
(data ->> 'dag_size')::BIGINT,

0 commit comments

Comments
 (0)