Du kan konfigurere statement_timeout
i klienten:
const { Client } = require('pg')
const client = new Client({
statement_timeout: 10000
})
eller i poolen:
const { Pool } = require('pg')
const pool = new Pool({
statement_timeout: 10000
})