jackc/pgx

PostgreSQL driver and toolkit for Go

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 22 minutes ago
Added to GitGenius on September 4th, 2026
Created on March 30th, 2013
Open Issues & Pull Requests: 244 (-10)
GitHub issues: Enabled
Number of forks: 1,114
Total Stargazers: 14,227 (+0)
Total Subscribers: 100 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 29.0 hours
Mean response time: 19.9 days
90th percentile: 9.9 days
Tracked items: 310

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 7% of issues opened in the past year have been closed. Three people close 60% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 104
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 728 days
Stale 30+ days: 91
Stale 90+ days: 81

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (136)
  • question (3)
  • enhancement (2)
  • help wanted (2)
  • needs response (2)
  • RFC (1)
  • documentation (1)
  • v5 (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

pgx is a PostgreSQL driver and toolkit for Go.

The tool addresses the need for efficient, feature-rich PostgreSQL connectivity in Go applications. It provides a pure Go driver that exposes PostgreSQL-specific capabilities like LISTEN/NOTIFY and COPY protocol support, which are unavailable through the standard database/sql interface. Beyond the driver itself, pgx includes a toolkit of underlying packages for parsing the wire protocol and mapping types between PostgreSQL and Go, enabling developers to build alternative drivers, proxies, load balancers, and logical replication clients. The driver supports approximately seventy PostgreSQL types, automatic statement preparation and caching, batch queries, binary format support for custom types, connection pooling, and full TLS control.

Developers should choose pgx when their application targets PostgreSQL exclusively and no other libraries requiring database/sql are in use, as the pgx interface delivers higher performance than the standard interface. The tool suits projects that need PostgreSQL-specific features or require maximum query performance. For applications requiring database portability or integration with libraries expecting database/sql, the project provides a stdlib adapter that wraps pgx for standard interface compatibility, and connections can be converted between the two interfaces as needed.

The project maintains active engagement with issues and pull requests, demonstrating responsiveness to user needs. Development follows a structured approach with clear contribution guidelines documented in CONTRIBUTING.md. The codebase receives regular updates addressing bug fixes and feature enhancements. The project provides comprehensive documentation including API references, a getting started guide, and architectural resources such as a detailed presentation on pgx design.