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

## Bug: If a `query_timeout` is reached when using a `submit`-able query object that doesn't have a `callback` method on it (such as all streaming query types, and probably most...

There is a bug in the query callback handling (e.g. #1860 #2560) but the test code doesn't pick it up. This change ensures that code path runs in the tests,...

fix issue #1860 Set default value to prevent Fatal exception with timeouts in a queryStream

I feel like a `client.on('release')` event would be useful in conjunction with the existing `pool.on('acquire')` event. I am trying to add logging to my program to detect long-held connections, but...

Does anyone know how to solve the issue when the node version 16 is not working with pg connection? Tried to connect pg using pg version 8.7.3 and 7.4.3 with...

**Version: pg 8.7.1** We are getting a client via a `pg.Pool` as: ```js const pool = new pg.Pool({...}); const client = pool.connect(); client.on('error', (err) => {...}); ``` Yet we still...

This is one of my first issues on a node library so I'm going to do my best to explain and show my findings but if anymore information is needed...

I'm using the "pg" package in my TypeScript program. I'm using `.on('notice', ...)` to listen for notices: ```ts client.on('notice', (notice: NoticeMessage) => ...); ``` What's the right way to import...

### Summary According to [the docs](https://node-postgres.com/features/connecting), node-postgres uses the same [environment variables](https://www.postgresql.org/docs/9.1/static/libpq-envars.html) as libpq to connect to a PostgreSQL server. However, PGSSLCERT, PGSSLKEY, PGSSLROOTCERT are not supported. ### To reproduce...

This is the code (Typescript) ``` import { Pool } from 'pg'; const pool = new Pool({ connectionString }); // The connection string points to a non-existent database 'postgresql://:@127.0.0.1:49175/foo' pool.on('connect',...