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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start 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

1 day ago