We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c38c0 commit 949f655Copy full SHA for 949f655
src/server/utils.ts
@@ -26,6 +26,10 @@ export const extractRequestForLogging = (request: FastifyRequest) => {
26
export function createConnectionConfig(request: FastifyRequest): PoolConfig {
27
const connectionString = request.headers.pg as string
28
const config = { ...DEFAULT_POOL_CONFIG, connectionString }
29
+ // For pooler connections like pgbouncer, statement_timeout isn't supported
30
+ if (config.port !== 5432) {
31
+ config.statement_timeout = undefined
32
+ }
33
34
// Override application_name if custom one provided in header
35
if (request.headers['x-pg-application-name']) {
0 commit comments