Du kan ställa in statement_timeout
kod>
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
})