Skip to content

Commit 8f2b2a4

Browse files
committed
Remove statement_timeout
1 parent 3122560 commit 8f2b2a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/db/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export const pool = new pg.Pool({
77
max: 8,
88
ssl: process.env.PGSSL ? process.env.PGSSL === 'true' : { rejectUnauthorized: false },
99
connectionTimeoutMillis: 500,
10-
// Statement query is at the Postgres side, times out any individual query
11-
statement_timeout: 750,
10+
// Statement timeout is at the Postgres side, times out any individual query
11+
// statement_timeout: 750, // TODO: doesn't work with pgbouncer?
1212
// Query timeout is on the NodeJS side, it times out the an operation on the client
1313
query_timeout: 1000,
1414
});

0 commit comments

Comments
 (0)