node-postgres icon indicating copy to clipboard operation
node-postgres copied to clipboard

PostgreSQL client for node.js.

Results 357 node-postgres issues
Sort by recently updated
recently updated
newest added

```js import { Client, Pool } from 'pg'; import QueryStream from 'pg-query-stream'; const settings1 = { host: 'postgres-1', port: 5432, user: 'postgres', password: 'postgres', database: 'postgres', }; const settings2 =...

In recent version of node, node is using [cjs-module-lexer](https://github.com/guybedford/cjs-module-lexer) to try to detect names of exports in CJS modules. It is doing static analysis so it cannot detect everything. Previously...

We are using the pool in a very time sensitive scenario and we are analysing adding a feature to this pool where we can set a parameter like `minIdleConnections` that...

Node offers an AbortSignal API that gives async operations a way to cancel their progress if aborted by the caller. Common use cases are web apps that see their request...

Currently, on `Client` object you have `_connected` property, but it is a private property. Could you please add a getter for this property (like `isConnected()` or whatever name you choose)?...

```js client.query('select pg_sleep(10)', {query_timeout: 5}) .then(...) .catch(error => { e.message == 'Query read timeout' }) ``` Solve #2652

We use Round-robin DNS for connecting to an postgres backend. This is just a simple AWS Network ELB hostname. We see our connection pool always seems to use the same...

In our scenario there are router/switches that will reset the connection if the connection is idle for more than 5 min. This throws the ECONNRESET error and crashing up the...

Leaving a note here as a reminder to take another look at the SASL error handling. At first glance I don't think the errors would bubble up as they're thrown...

Yesterday we upgraded from [email protected] (with [email protected]) to [email protected] (with [email protected]), specifically from our package-lock.json: ```json "pg": { "version": "8.2.1", "resolved": "https://registry.npmjs.org/pg/-/pg-8.2.1.tgz", "integrity": "sha512-DKzffhpkWRr9jx7vKxA+ur79KG+SKw+PdjMb1IRhMiKI9zqYUGczwFprqy+5Veh/DCcFs1Y6V8lRLN5I1DlleQ==", "requires": { "buffer-writer": "2.0.0", "packet-reader": "1.0.0",...