pgx is an open-source PostgreSQL driver and toolkit written entirely in Go for building database applications. It provides a high-performance interface that exposes PostgreSQL-specific capabilities while supporting Go's standard database/sql package. The library includes connection pooling, automatic prepared statement caching, and efficient batch query execution. It supports approximately 70 PostgreSQL data types, including arrays, JSON, network addresses, and custom types. Developers can perform bulk data transfers through PostgreSQL's COPY protocol and use LISTEN/NOTIFY for asynchronous notifications. Additional functionality includes transaction management, TLS connections, tracing, and logging. Its modular packages also support building database proxies, alternative drivers, and other PostgreSQL tools.

Features

  • High-Performance PostgreSQL Driver for Go
  • Concurrency-Safe Database Connection Pooling
  • Automatic Prepared Statement Caching
  • Batch Queries and Bulk COPY Operations
  • PostgreSQL Data Type Mapping and Encoding
  • LISTEN/NOTIFY and Transaction Management

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow pgx

pgx Web Site

Other Useful Business Software
Veeam Data Platform v13.1 - Get Your Free Trial Icon
Veeam Data Platform v13.1 - Get Your Free Trial

Secure by design, portable by default. Recover clean, fast, anywhere. Start a free trial.

Try Veeam Data Platform today. Experience the unified platform that's secure by design, portable by default, and proven to recover clean, fast, and anywhere.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pgx!

Additional Project Details

Operating Systems

Linux, Mac

Programming Language

Go

Related Categories

Go Libraries

Registered

2026-10-15