Hacker GitHub

← All repos

jackc/pgx

View on GitHub ↗ ★ 14,375 Go

PostgreSQL driver and toolkit for Go

22 mentions on Hacker News by 22 people: 3 stories, 19 comments · first 2016-03-31 · latest 2026-08-16

Mentions per year 22 mentions · busiest year 2020 (7)
20082026
  1. For sure. I mean: many – if not most – people? In my case, with Go, I have always relied on http://github.com/jackc/pgx pool, which works quite well, especially with the binary protocol.
  2. …library for Python [2] will automatically manage prepared statements for you. [1]: https://pkg.go.dev/github.com/jackc/pgx/v5#hdr-Prepared_Stat... [2]: https://www.psycopg.org/psycopg3/docs/advanced/prepare.html
    comment by kbolino · 2026-03-04 · in Better JIT for Postgres
  3. Naming conflict with pgx, a popular Postgres driver for Go: https://github.com/jackc/pgx
  4. I've also seen https://github.com/jackc/pgx used in many projects
    comment by AlbinoDrought · 2025-12-13 · in Go is portable, until it isn't
  5. …query pipelining - at it seems like the popular go Postgres client library pgx supports it: https://github.com/jackc/pgx/issues/1113#event-6964024724
  6. …not database/sql, for performance and extra features [0], so it's not that simple in practice. [0]: https://github.com/jackc/pgx#choosing-between-the-pgx-and-da...
  7. Why don't you use sqlc + pgx? What's missing from the two? https://github.com/kyleconroy/sqlc https://github.com/jackc/pgx
    comment by Thaxll · 2023-03-20 · in Why use Rust on the back end?
  8. …In Go, it's 40 lines [2] [1] https://github.com/ruby/date/blob/d21c69450a57a1931ab6190385... [2]: https://github.com/jackc/pgx/blob/a968ce3437eefc4168b39bbc4b...
  9. …-- a great contribution to the Go gRPC ecosystem. [0]: https://github.com/authzed/spicedb [1]: https://github.com/jackc/pgx [2]: https://github.com/planetscale/vtprotobuf
    comment by jzelinskie · 2022-11-01 · in One Million Database Connections
  10. …time causes issues when you compare the values returned due to Go setting the location property: https://github.com/jackc/pgx/issues/863 pgx doesn't seem to handle reconnects the same way lib/pg does, but I haven't tested this recently:…
  11. …to change the import path for subsequent major versions (that is, backwards incompatible versions): https://github.com/jackc/pgx/blob/3599f646293c1b0d381214ab26... A one-line change to your modfile and the import path is changed.
    comment by arghwhat · 2021-10-03 · in Effective Go
  12. …as well, e.g. the de facto standard Postgres driver for Go (which is by the way super fast), https://github.com/JackC/pgx
    comment by _cobe_bero__ · 2020-10-30 · in Is Rust web yet?
  13. …Bazel, you only need dependencies for the individual subpackages. As a specific example... suppose you use github.com/jackc/pgx. With "go mod" you end up with "github.com/sirupsen/logrus" in your transitive dependencies, but with Bazel you…
  14. …with `database/sql`, so any database with database/sql driver is supported. It also works with https://github.com/jackc/pgx - specific library for PostgreSQL. Apart from the out of the box support, scany can be easily extended to work with…
  15. At first I thought it is a Postgresql driver for Go that has the same name https://github.com/jackc/pgx
  16. They may have been using one of the PG specific Go libraries instead too. eg https://github.com/jackc/pgx
  17. Sounds like pgx. Spent forever debugging this myself. https://github.com/jackc/pgx/issues/494
  18. …code take any advantage pgx[1] extra features or is it designed to use strictly database/sql? [1] https://github.com/jackc/pgx
  19. …a lot of very good design choices.† Oh, and the client drivers page should probably also list pgx ( https://github.com/jackc/pgx ), which is a nice, fast PostgreSQL client that doesn't use the not-as-nice database/sql package. ___ † The…
    comment by lobster_johnson · 2016-03-31 · in CockroachDB Skitters into Beta