node-postgres
node-postgres copied to clipboard
PostgreSQL client for node.js.
In some cases client.end() silently exits the node process without any error messages. Could be related to #2691 and #2272, but in those cases, it's a query on an unconnected...
Hi! Thanks for this great library! Unfortunately I have the same problem as mentioned here: #2404 I.e. the query-finish callback is called in a different execution context. Or something. I...
### Situation I have a date field, stored on the format YYYY-MM-DD (i.e. 2019-02-27). ### Expectations I expect it to be returned on the same format as the YYYY-MM-DD. (2019-02-27)....
`pg` version: 8.11.3 ## How to reproduce: Create a table with an interval field and add a row: ```sql CREATE TABLE my_table ( my_interval_field INTERVAL ); INSERT INTO my_table (my_interval_field)...
Hi :slightly_smiling_face: :wave:, when browsing [node-postgres.com/features/queries](https://node-postgres.com/features/queries) I noticed that the link to the types API a the bottom of the page appears to be broken. It seemed likely that the...
There is a particular scenario where calling `Client.end` will result in a hanging promise when using Cloudflare's socket implementation and the socket does not successfully connect. I've found that this...
Are there any issues with this pattern of code: ```js let pool = new Pool({ max: 5 }); pool.on('connect', (client) => { client._ready = new Promise((resolve, reject) => { client.query('SET...
Hi, I'm wondering if there is an option to set a client side query timeout for a pool. I have a network issue, where the socket stays open, but is...
The current linting script is broken in the CI because of the recent bump of `prettier` that does not seem compatible with the installed version of eslint. This PR upgrades...
Per https://nodejs.org/en/about/previous-releases, node v20 is "active".