PostgreSQL
 sql >> Datenbank >  >> RDS >> PostgreSQL

Node PostgreSQL-Timeout einer Abfrage durch den Client

Sie können statement_timeout im Client:

const { Client } = require('pg')

const client = new Client({
  statement_timeout: 10000
})

oder im Pool:

const { Pool } = require('pg')

const pool = new Pool({
  statement_timeout: 10000
})