Anda dapat menyiapkan statement_timeout
di klien:
const { Client } = require('pg')
const client = new Client({
statement_timeout: 10000
})
atau di kolam renang:
const { Pool } = require('pg')
const pool = new Pool({
statement_timeout: 10000
})