{"slug": "pgx", "name": "pgx", "category": "databases", "category_name": "Databases", "description": "", "recommenders": 3, "commenters": 5, "warners": 0, "score": 3.17, "rising": 0.35, "first": "2025-12-12", "latest": "2026-08-16", "why": "I have always relied on http://github.com/jackc/pgx pool, which works quite well, especially with the binary protocol.", "why_is_quote": true, "has_verdict": false, "sentiment": {"recommend": 3, "neutral": 2, "compare": 0, "warn": 0}, "spark": [0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0], "listed": true, "loved": [], "caveat": "", "short_quote": "I have always relied on http://github.com/jackc/pgx pool, which works quite well, especially with the binary protocol.", "kind": "", "icon": false, "domain": null, "github_repo": "github.com/jackc/pgx", "official_url": "https://github.com/jackc/pgx", "pricing": "", "aliases": ["pgx"], "verdict": null, "praise": [{"label": "", "summary": "", "quotes": [{"id": 789127264, "item_id": 49320454, "url": "https://news.ycombinator.com/item?id=49320454", "by": "henvic", "date": "2026-08-16", "stance": "recommend", "quote": "I have always relied on http://github.com/jackc/pgx pool, which works quite well, especially with the binary protocol.", "excerpt": "For sure. I mean: many \u2013 if not most \u2013 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.", "context": "", "use_case": "Postgres connection pooling in Go", "switched_from": "", "story": "Does anyone run Postgres without PgBouncer?"}, {"id": 769295538, "item_id": 48080971, "url": "https://news.ycombinator.com/item?id=48080971", "by": "faangguyindia", "date": "2026-05-09", "stance": "recommend", "quote": "When you use HTMLX (goat) + sqlc (goat) + pgx (another goat) + Chi (yet another goat) and Sqlite (goat).", "excerpt": "I've used Python (django/flask/fast api), Java (springboot), Ruby on Rails for writing web applications and APIs. Nothing beats Go. When you use HTMLX (goat) + sqlc (goat) + pgx (another goat) + Chi (yet another goat) and Sqlite (goat). Most apps will not need anything more than Sqlite, i've several sqlite apps doing a couple of million visits per day. Compiles to signal binary blazingly fast. Deploy using systemd se", "context": "", "use_case": "", "switched_from": "", "story": "Show HN: Building a web server in assembly to give my life (a lack of) meaning"}, {"id": 740033504, "item_id": 46252094, "url": "https://news.ycombinator.com/item?id=46252094", "by": "AlbinoDrought", "date": "2025-12-12", "stance": "recommend", "quote": "I've also seen https://github.com/jackc/pgx used in many projects", "excerpt": "I've also seen https://github.com/jackc/pgx used in many projects", "context": "", "use_case": "Go PostgreSQL driver", "switched_from": "", "story": "Go is portable, until it isn't"}]}], "caveats": [], "who": [], "tags": [], "use_cases": ["postgres connection pooling in go", "go postgresql driver"], "compared": [], "makers": [], "threads": [{"url": "https://news.ycombinator.com/item?id=49277952", "title": "Does anyone run Postgres without PgBouncer?", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=48080587", "title": "Show HN: Building a web server in assembly to give my life (a lack of) meaning", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=47243804", "title": "Better JIT for Postgres", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=46522841", "title": "PgX \u2013 Debug Postgres performance in the context of your application code", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=46180911", "title": "Go is portable, until it isn't", "mentions": 1}], "sentiment_by_month": {"2025-11": {}, "2025-12": {"recommend": 1}, "2026-01": {"neutral": 1}, "2026-02": {}, "2026-03": {"neutral": 1}, "2026-04": {}, "2026-05": {"recommend": 1}, "2026-06": {}, "2026-07": {}, "2026-08": {"recommend": 1}, "2026-09": {}, "2026-10": {}}, "quotes": [{"id": 789127264, "item_id": 49320454, "url": "https://news.ycombinator.com/item?id=49320454", "by": "henvic", "date": "2026-08-16", "stance": "recommend", "quote": "I have always relied on http://github.com/jackc/pgx pool, which works quite well, especially with the binary protocol.", "excerpt": "For sure. I mean: many \u2013 if not most \u2013 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.", "context": "", "use_case": "Postgres connection pooling in Go", "switched_from": "", "story": "Does anyone run Postgres without PgBouncer?"}, {"id": 769295538, "item_id": 48080971, "url": "https://news.ycombinator.com/item?id=48080971", "by": "faangguyindia", "date": "2026-05-09", "stance": "recommend", "quote": "When you use HTMLX (goat) + sqlc (goat) + pgx (another goat) + Chi (yet another goat) and Sqlite (goat).", "excerpt": "I've used Python (django/flask/fast api), Java (springboot), Ruby on Rails for writing web applications and APIs. Nothing beats Go. When you use HTMLX (goat) + sqlc (goat) + pgx (another goat) + Chi (yet another goat) and Sqlite (goat). Most apps will not need anything more than Sqlite, i've several sqlite apps doing a couple of million visits per day. Compiles to signal binary blazingly fast. Deploy using systemd se", "context": "", "use_case": "", "switched_from": "", "story": "Show HN: Building a web server in assembly to give my life (a lack of) meaning"}, {"id": 756014304, "item_id": 47250894, "url": "https://news.ycombinator.com/item?id=47250894", "by": "kbolino", "date": "2026-03-04", "stance": "neutral", "quote": "will automatically manage prepared statements for you", "excerpt": "It is not always necessary to explicitly use prepared statements, though. For example, the pgx library for Go [1] and the psycopg3 library for Python [2] will automatically manage prepared statements for you. [1]: https://pkg.go.dev/github.com/jackc/pgx/v5#hdr-Prepared_Statements [2]: https://www.psycopg.org/psycopg3/docs/advanced/prepare.html", "context": "", "use_case": "", "switched_from": "", "story": "Better JIT for Postgres"}, {"id": 744839408, "item_id": 46552463, "url": "https://news.ycombinator.com/item?id=46552463", "by": "PhilippGille", "date": "2026-01-09", "stance": "neutral", "quote": "a popular Postgres driver for Go", "excerpt": "Naming conflict with pgx, a popular Postgres driver for Go: https://github.com/jackc/pgx", "context": "", "use_case": "", "switched_from": "", "story": "PgX \u2013 Debug Postgres performance in the context of your application code"}, {"id": 740033504, "item_id": 46252094, "url": "https://news.ycombinator.com/item?id=46252094", "by": "AlbinoDrought", "date": "2025-12-12", "stance": "recommend", "quote": "I've also seen https://github.com/jackc/pgx used in many projects", "excerpt": "I've also seen https://github.com/jackc/pgx used in many projects", "context": "", "use_case": "Go PostgreSQL driver", "switched_from": "", "story": "Go is portable, until it isn't"}]}