PgBouncer

Tech Optimizer
October 8, 2025
OpenAI utilizes PostgreSQL as the backbone for its essential systems, particularly in collaboration with Microsoft Azure Database for PostgreSQL. Initially, OpenAI adopted a straightforward architecture with a single primary Postgres instance for write operations and multiple read-only replicas for handling read traffic. This setup allowed for exceptional scalability in read operations, but as demand increased, write requests became a bottleneck. To address scalability challenges, OpenAI implemented several strategies, including offloading write workloads, optimizing read-heavy workloads with replicas and smart query routing, and establishing schema governance for stability. These optimizations led to significant outcomes: the PostgreSQL cluster now processes millions of queries per second, has numerous global read replicas for low-latency access, and has improved database response times from approximately 50 milliseconds to under five milliseconds for many queries. OpenAI's collaboration with Azure Database for PostgreSQL facilitated ease of scaling and replication, allowing for the seamless addition of replicas and the development of features like elastic clusters and cascading read replicas. The advantages of Azure included high availability, co-innovation support, and security compliance, providing a reliable foundation for OpenAI's optimizations.
Tech Optimizer
September 11, 2025
PgEdge has launched pgEdge Enterprise Postgres, a PostgreSQL distribution designed for enterprise needs, along with a transition of its distributed Postgres components to an open source licensing model. The distributed components, including Spock, Large Object Logical Replication (LOLOR), and Snowflake Sequences, are now licensed under the PostgreSQL License and available on GitHub. PgEdge Enterprise Postgres includes features such as high availability, support for PostgreSQL versions 16, 17, and 18, and enterprise-ready extensions like pgAudit and pgBackrest. Deployment options include native packages, containerization for Kubernetes and Docker, and managed services through PgEdge Cloud.
Tech Optimizer
September 11, 2025
pgEdge has launched pgEdge Enterprise Postgres and transitioned all its Distributed Postgres components to an open source licensing framework under the standard PostgreSQL License. The new pgEdge Enterprise Postgres supports both distributed and non-distributed PostgreSQL applications and includes features such as high availability, support for PostgreSQL versions 16, 17, and soon 18, and enterprise-ready extensions. The product is available in VM Edition immediately and will have a Container Edition launching in Q4. It is compatible with various operating systems, with additional support services available.
Tech Optimizer
September 10, 2025
pgEdge has launched pgEdge Enterprise Postgres and transitioned to an open source licensing model for its distributed PostgreSQL components. The company is expanding its offerings to support both distributed and non-distributed applications based on standard PostgreSQL. Key features of pgEdge Enterprise Postgres include high availability for various workloads, support for PostgreSQL versions 16, 17, and 18, enterprise-ready extensions, management and monitoring capabilities via pgAdmin, and distributed-ready components. All Distributed Postgres components are now fully open source under the PostgreSQL License, including the Spock, LOLOR, and Snowflake extensions. pgEdge Enterprise Postgres VM Edition is available through a paid subscription, and the Enterprise Container Edition will launch in Q4. The company supports various operating systems and offers optional services, with a high Net Promoter Score from clients. pgEdge's clientele includes enterprises like Bertelsmann, Qube RT, Jobot, and the European Parliament, and it is backed by investors such as Akamai Technologies and Rally Ventures.
Tech Optimizer
September 10, 2025
pgEdge has launched pgEdge Enterprise Postgres, designed for enterprise-grade reliability and manageability, compatible with PostgreSQL versions 16, 17, and the upcoming version 18. Key features include high availability, comprehensive support, enterprise-ready extensions (pgAudit, pgBackrest, pgBouncer, PostGIS, pgVector), flexible management options via pgAdmin, and diverse deployment options (virtual machines, Kubernetes, OpenShift, Docker). Additionally, pgEdge has transitioned all its distributed Postgres components to an open source licensing model under the PostgreSQL License, including projects like the Spock multi-master logical replication extension and Large Object Logical Replication (LOLOR) extension, now available on GitHub. The pgEdge Enterprise Postgres VM Edition is available through a paid subscription, with a container edition launching in Q4. Optional services include dedicated Forward Deployed Engineer support, with a Net Promoter Score of 100 for support services.
Tech Optimizer
June 2, 2025
Alexey has developed the pgpro-otel-collector, an OpenTelemetry collector by PostgresPro, designed to gather metrics and logs from PostgreSQL databases. It collects PostgreSQL metrics using an internal metrics library, OS-level metrics such as CPU and memory usage, and PostgreSQL logs in CSV and JSON formats. The collector includes internal processors for batch processing and supports exporting to OTLP-compatible backends like Elasticsearch and Prometheus. Installation is straightforward, requiring configuration of the Postgres connection and data destination. The collector can gather a range of PostgreSQL statistics and supports advanced features like CFS and pg_wait_sampling. Future enhancements include support for additional system views, integration with Shardman and BiHA, collection of custom query-based metrics, and a Grafana dashboard. Alexey's background includes experience with various monitoring tools and a focus on PostgreSQL, leading to the creation of this collector.
Tech Optimizer
March 18, 2025
pgactive enables rolling major version upgrades for Amazon RDS for PostgreSQL, allowing for a smoother transition with reduced impact on applications. Amazon RDS supports both minor and major version upgrades, with minor upgrades being backward-compatible and major upgrades introducing non-backward-compatible features. Downtime during minor upgrades can be minimized using Amazon RDS Proxy or PgBouncer. For major upgrades, a blue/green deployment option is available, which involves provisioning a new DB instance and validating the upgrade. The pgactive extension allows for active-active replication, enabling all nodes to handle read and write operations simultaneously. It includes features like conflict detection and resolution. Key benefits of using pgactive for database upgrades include multi-tenant support, minimal downtime, and seamless rollback capabilities. To perform a major version upgrade using pgactive, the process involves setting up source and target databases, configuring pgactive parameters, and verifying data replication. Specific commands are provided for creating and modifying databases, setting up user mappings, and initializing the replication group. Limitations of pgactive include handling sequences, materialized views, DDL replication, existing logical replication, and tables without primary keys. Monitoring replication lag is crucial for diagnosing potential issues, and alerts should be set up for active status and pending WAL files. In case of a rollback, the application can be pointed back to the old primary database. After the upgrade, resources should be cleaned up to avoid incurring charges.
Tech Optimizer
July 5, 2024
- PostgreSQL's performance can degrade with an excessive number of concurrent connections. - Connection pooling solutions like PgBouncer are essential for high-traffic environments. - PgBouncer reduces the overhead of establishing and closing connections by reusing a pool of established connections. - It is recommended to set the maximum connections lower than 10 per CPU core, with a maximum of 20 per CPU core as the limit.
Search