Results 344 comments of Jack Christensen
trafficstars

> The documentation seems very limited and you have to look through all the source files!? As is typical with Go projects there is a link to the [docs](https://pkg.go.dev/github.com/jackc/pgx/v5) at...

There's less chance of misuse when making a allocating a new buffer by default. And while that may or may not have been a wrong decision it would be far...

> But I am curious, you think it would not be possible to somehow get the reader to get bytes directly from the connection? Not easily. Each message is read...

> pgtype.Array gets a Value() method. I don't think this is feasible. The generic approach for `Array[T]` would only work for builtin types unless custom types were also registered on...

> I read in some issue that v4 used a generator. What tool did you use for generation? It might be worth to port it for v5 array types, building...

👍 It be interesting to experiment with a few different approaches before committing to any one. I still don't see any alternative to an array type for each underlying type,...

Candidate solution: https://github.com/jackc/pgx/pull/2020

It's only used by the tests. It shouldn't actually include `github.com/lib/pq` in your compiled programs.

Ugg... I had a long reply written and somehow going back and forth between the "Conversion" and "Files Changed" tabs I lost it. So sorry that this reply might be...

I'm still not convinced this is the right approach. And while, unfortunately, I still do not have a complete picture of what the right approach is, my thoughts have coalesced...