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
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
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

22 hours ago