postgres icon indicating copy to clipboard operation
postgres copied to clipboard

Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare

Results 249 postgres issues
Sort by recently updated
recently updated
newest added

Hi, I have a huge application and I'm migrating the code from "brianc/node-postgres" to "porsager/postgres", I have some question. **FIRST QUESTION** I'm replace all query method of "brianc/node-postgres" ([docs](https://node-postgres.com/apis/client#clientquery)) with...

I have a dynamic array of conditions ``` const conditions = [ sql`age > 1`, sql`height < 170`, sql`hair_color = 'red'` ] ``` I would like to join al of...

This options can also accept false as a value, not only a function

We need our data-access code to be within a timeout. Currently, it seems the connect-timeout setting and behavior doesn't account for the time it takes for a connection to be...

Hi, everyone,I encountered a strange phenomenon: if the array object contains the key **"type"**, an error occurs during insertion. Reproduction Code --- ```js const postgres = require('postgres'); const sql =...

Using `postgres({types: {bigint: postgres.BigInt}})` I am able to read both `int8` and `int8[]` values as `bigint`s. I can also input values using `string[]` parameters for the latter. However, I get...

I am trying to store tile data to table using postgis-raster type for tile data. ``` const tile_data = Buffer.from(await res.arrayBuffer()) await db`INSERT INTO ${db(sourceSpec.table)} (z, x, y, tile_data) VALUES...

Thanks for building this library, it's very impressive and I'm enjoying using it so far. It would be very helpful if I could unit test some of my query-generating functions...

We have an issue, where the sql client just does not respond. In other words, the promise does not resolve nor reject. The application has peaks with lots of concurrent...