pgpool Wiki (original) (raw)

Contents

Welcome to Pgpool Wiki!

What is Pgpool-II?

Pgpool-II is a middleware that works between PostgreSQL servers and a PostgreSQL database client. It is distributed under a license similar to BSD and MIT. It provides the following features.

Pgpool-II saves connections to the PostgreSQL servers, and reuse them whenever a new connection with the same properties (i.e. username, database, protocol version) comes in. It reduces connection overhead, and improves system's overall throughput.

Pgpool-II can manage multiple PostgreSQL servers. Using the replication function enables creating a realtime backup on 2 or more physical disks, so that the service can continue without stopping servers in case of a disk failure.

If a database is replicated, executing a SELECT query on any server will return the same result. Pgpool-II takes an advantage of the replication feature to reduce the load on each PostgreSQL server by distributing SELECT queries among multiple servers, improving system's overall throughput. At best, performance improves proportionally to the number of PostgreSQL servers. Load balance works best in a situation where there are a lot of users executing many queries at the same time.

There is a limit on the maximum number of concurrent connections with PostgreSQL, and connections are rejected after this many connections. Setting the maximum number of connections, however, increases resource consumption and affect system performance. pgpool-II also has a limit on the maximum number of connections, but extra connections will be queued instead of returning an error immediately.

Watchdog can coordinate multiple Pgpool-II, create a robust cluster system and avoid the single point of failure or split brain. Watchdog can perform lifecheck against other pgpool-II nodes, to detect a fault of Pgpoll-II. If active Pgpool-II goes down, standby Pgpool-II can be promoted to active, and take over Virtual IP.

In memory query cache allows to save a pair of SELECT statement and its result. If an identical SELECTs comes in, Pgpool-II returns the value from cache. Since no SQL parsing nor access to PostgreSQL are involved, using in memory cache is extremely fast. On the other hand, it might be slower than the normal path in some cases, because it adds some overhead of storing cache data.

Pgpool-II speaks PostgreSQL's backend and frontend protocol, and relays messages between a backend and a frontend. Therefore, a database application (frontend) thinks that Pgpool-II is the actual PostgreSQL server, and the server (backend) sees Pgpool-II as one of its clients. Because Pgpool-II is transparent to both the server and the client, an existing database application can be used with Pgpool-II almost without a change to its sources.

Pgpool-II License

See License.

Stable versions

Contacts

What's new

News

Pgpool-II 4.6.2 officially released (2025/05/30)

Pgpool-II 4.6.2 officially released.

You can download them here.

Events

PGConf.ASIA 2019 in Bali

Bo Peng is going to give a presentation Setup a High-Availability and Load Balancing PostgreSQL Cluster: New Features of Pgpool-II 4.1 at "PGConf.ASIA 2019" held in Bali from September 8th to 11st.

PGConf.ASIA 2018 in Tokyo

Tatsuo Ishii and Bo Peng are going to give a presentation Celebrating its 15th Anniversary Pgpool-II Past Present and Future Celebrating its 15th Anniversary Pgpool-II Past Present and Future part2 at "PGConf.ASIA 2018" held in Tokyo from December 10th to 12th.

PGConf.ASIA 2017 in Tokyo

Tatsuo Ishii is going to give a presentation "More reliability and support for PostgreSQL 10: Introducing Pgpool-II 3.7" at "PGConf.ASIA 2017", held in Tokyo from December 4th to 6th.

PostgreSQL Conference in Russia 2016

Tatsuo gave a talk "How to manage a herd of elephants" at "PostgreSQL Conference in Russia 2016", held in Moscow from February 4th to 5th. The slides are available in Developer's documentation.

PostgreSQL Conference in China 2015

Tatsuo gave a talk "How to manage a herd of elephants" at "PostgreSQL Conference in China 2015", held in Beijing from November 21th to 22th. The slides are available in Developer's documentation.

pgCon 2015 Cluster Hacker Summit

We participated "6th Postgres Cluster Hacker Summit" which was held as a part of PgCon 2015 Developer Unconference. We reported about Development Status Updates and pgpool-II 3.5 features. The slides are available in Developer's documentation.

Pgpool-II Day 2015 in Tokyo

We had the very first time pgpool-II decicated conference. See the event report.

Stable

Pgpool-II 4.6.2 officially released (2025/05/30)

Pgpool-II 4.6.2 officially released.

You can download them here.

Pgpool-II 4.6.1, 4.5.7, 4.4.12, 4.3.15 and 4.2.22 officially released (2025/05/15)

This release contains a security fix.

An authentication bypass vulnerability exists in the client authentication mechanism of Pgpool-II. In Pgpool-II, authentication may be bypassed even when it is supposed to be enforced. As a result, an attacker could log in as any user, potentially leading to information disclosure, data tampering, or even a complete shutdown of the database. (CVE-2025-46801)

This vulnerability affects systems where the authentication configuration matches one of the following patterns:

All versions of Pgpool-II 4.0 and 4.1 series, 4.2.0 to 4.2.21, 4.3.0 to 4.3.14, 4.4.0 to 4.4.11, 4.5.0 to 4.5.6 and 4.6.0 are affected by this vulnerability. It is strongly recommended to upgrade to Pgpool-II 4.6.1, 4.5.7, 4.4.12, 4.3.15 and 4.2.22 or later. Alternatively, you can modify your settings so that they do not match any of the vulnerable configuration patterns.

You can download them here.

Pgpool-II 4.6.0 officially released (2025/02/28)

Pgpool-II 4.6.0 is now released. This is the first stable release of Pgpool-II 4.6.x.

V4.6 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.5.6, 4.4.11, 4.3.14 and 4.2.21 officially released (2025/02/28)

Pgpool-II 4.5.6, 4.4.11, 4.3.14 and 4.2.21 officially released.

You can download them here.

Pgpool-II 4.5.5, 4.4.10, 4.3.13, 4.2.20 and 4.1.23 officially released (2024/11/28)

Pgpool-II 4.5.5, 4.4.10, 4.3.13, 4.2.20 and 4.1.23 officially released.

Please note that 4.1.23 is the last release of the 4.1.x series.

You can download them here.

Pgpool-II 4.5.4, 4.4.9, 4.3.12, 4.2.19 and 4.1.22 officially released (2024/09/09)

Pgpool-II 4.5.4, 4.4.9, 4.3.12, 4.2.19 and 4.1.22 officially released.

This release contains a security fix.

When the query cache feature is enabled, it was possible that a database user can read rows from tables that should not be visible for the user through query cache (CVE-2024-45624).

All versions of Pgpool-II older than 4.5.4, 4.4.9, 4.3.12, 4.2.19, 4.1.22, and all older versions that has the query cache feature (the query cache feature was implemented in 3.2) are affected by the vulnerability. It is strongly recommend to upgrade to Pgpool-II 4.5.4, 4.4.9, 4.3.12, 4.2.19 and 4.1.22 or later. Or you should better turn off the query cache feature.

You can download them here.

Pgpool-II 4.5.3, 4.4.8, 4.3.11, 4.2.18 and 4.1.21 officially released (2024/08/15)

Pgpool-II 4.5.3, 4.4.8, 4.3.11, 4.2.18 and 4.1.21 officially released.

You can download them here.

Pgpool-II 4.5.2, 4.4.7, 4.3.10, 4.2.17 and 4.1.20 officially released (2024/05/16)

Pgpool-II 4.5.2, 4.4.7, 4.3.10, 4.2.17 and 4.1.20 officially released.

You can download them here.

Pgpool-II 4.5.1, 4.4.6, 4.3.9, 4.2.16 and 4.1.19 officially released (2024/02/29)

Pgpool-II 4.5.1, 4.4.6, 4.3.9, 4.2.16 and 4.1.19 officially released.

You can download them here.

Pgpool-II 4.5.0 released (2023/12/12)

Pgpool-II 4.5.0 is now released. This is the first stable release of Pgpool-II 4.5.x.

V4.5 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.4.5, 4.3.8, 4.2.15, 4.1.18 and 4.0.25 officially released (2023/11/30)

Pgpool-II 4.4.5, 4.3.8, 4.2.15, 4.1.18 and 4.0.25 officially released.

Please note that 4.0.25 is the last release of the 4.0.x series.

You can download them here.

Pgpool-II 4.4.4, 4.3.7, 4.2.14, 4.1.17 and 4.0.24 officially released (2023/08/17)

Pgpool-II 4.4.4, 4.3.7, 4.2.14, 4.1.17 and 4.0.24 officially released.

You can download them here.

Pgpool-II 4.4.3, 4.3.6, 4.2.13, 4.1.16 and 4.0.23 officially released (2023/05/18)

Pgpool-II 4.4.3, 4.3.6, 4.2.13, 4.1.16 and 4.0.23 officially released.

You can download them here.

End-of-Life (EOL) Announcement for pgpoolAdmin (2023/02/17)

Pgpool Global Development Group announces end-of-life date for pgpoolAdmin, which is the management tool for Pgpool-II.

Pgpool Global Development Group will provide maintenance for pgpoolAdmin 4.0, 4.1 and 4.2 until December 31, 2023. After this date, bug fixes and security fixes for these versions will no longer be provided.

In addition, pgpoolAdmin for Pgpool-II 4.3 or later will not be released.

We would like to thank you for using pgpoolAdmin over the years.

Pgpool-II 4.4.2, 4.3.5, 4.2.12, 4.1.15 and 4.0.22 officially released (2023/01/23)

Pgpool-II 4.4.2, 4.3.5, 4.2.12, 4.1.15 and 4.0.22 officially released.

This release contains a security fix.

If following conditions are all met, the password of "wd_lifecheck_user" is exposed by "SHOW POOL STATUS" command. The command can be executed by any user who can connect to Pgpool-II. (CVE-2023-22332)

In this case it is strongly recommended to upgrade to this version (we do not expose wd_lifecheck_password in show pool_status command any more), or use one of following workarounds.

Workarounds for 4.0.x to 4.4.x users:

In any case we recommend to change "wd_lifecheck_password" in PostgreSQL.

Workarounds for 3.0.x to 3.7.x users:

In any case we recommend to change "wd_lifecheck_password" in PostgreSQL.

Please note that Pgpool-II 3.7.x or before are end of life and no minor updates are provided for those versions.

You can download them here.

Pgpool-II 4.4.1, 4.3.4, 4.2.11, 4.1.14, 4.0.21 and 3.7.26 officially released (2022/12/22)

Pgpool-II 4.4.1, 4.3.4, 4.2.11, 4.1.14, 4.0.21 and 3.7.26 officially released.

You can download them here.

Pgpool-II 4.4.0 released (2022/12/06)

Pgpool-II 4.4.0 is now released. This is the first stable release of Pgpool-II 4.4.x.

V4.4 contains new features and enhancements, including:

You can download it from here.

Release notes:English Japanese

Pgpool-II 4.3.3, 4.2.10, 4.1.13, 4.0.20 and 3.7.25 officially released (2022/08/18)

Pgpool-II 4.3.3, 4.2.10, 4.1.13, 4.0.20 and 3.7.25 officially released.

You can download them here.

Pgpool-II 4.3.2, 4.2.9, 4.1.12, 4.0.19 and 3.7.24 officially released (2022/05/19)

Pgpool-II 4.3.2, 4.2.9, 4.1.12, 4.0.19 and 3.7.24 officially released.

You can download them here.

Pgpool-II 4.3.1, 4.2.8, 4.1.11, 4.0.18 and 3.7.23 officially released (2022/02/17)

Pgpool-II 4.3.1, 4.2.8, 4.1.11, 4.0.18 and 3.7.23 officially released.

You can download them here.

Pgpool-II 4.2.7, 4.1.10, 4.0.17 and 3.7.22 officially released (2021/12/23)

Pgpool-II 4.2.7, 4.1.10, 4.0.17 and 3.7.22 officially released.

The purpose of this release is to provide packages for PostgreSQL 14.

You can download them here.

Pgpool-II 4.3.0 released (2021/12/07)

Pgpool-II 4.3.0 is now released. Please take a look at 4.3.0

V4.3.0 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.2.6, 4.1.9, 4.0.16, 3.7.21 and 3.6.28 officially released (2021/11/18)

Pgpool-II 4.2.6, 4.1.9, 4.0.16, 3.7.21 and 3.6.28 officially released.

You can download them here.

Pgpool-II 4.2.5 released (2021/09/14)

Pgpool Global Development Group is pleased to announce the availability of Pgpool-II 4.2.5.

You can download them here.

Pgpool-II 4.2.4, 4.1.8, 4.0.15, 3.7.20 and 3.6.27 officially released (2021/08/05)

Pgpool-II 4.2.4, 4.1.8, 4.0.15, 3.7.20 and 3.6.27 officially released.

You can download them here.

pgpoolAdmin 4.2.0 officially released (2021/06/17)

pgpoolAdmin 4.2.0 officially released.

pgpoolAdmin 4.2.0 adds support for Pgpool-II 4.2. Please take a look at release notes.

You can download them here.

Pgpool-II 4.2.3, 4.1.7, 4.0.14, 3.7.19 and 3.6.26 officially released (2021/05/20)

Pgpool-II 4.2.3, 4.1.7, 4.0.14, 3.7.19 and 3.6.26 officially released.

You can download them here.

Pgpool-II 4.2.2, 4.1.6, 4.0.13, 3.7.18 and 3.6.25 officially released (2021/02/18)

Pgpool-II 4.2.2, 4.1.6, 4.0.13, 3.7.18 and 3.6.25 officially released.

You can download them here.

Pgpool-II 4.2.1 released (2020/12/23)

Pgpool-II 4.2.1 is now released.

You can download them from here.

Pgpool-II 4.2.0 released (2020/11/26)

Pgpool-II 4.2.0 is now released.

V4.2 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Development

Pgpool-II 4.6 RC1 released (2025/02/20)

Pgpool-II 4.6 RC1 is now released.

Note that this is not a stable version but just for developers.

V4.6 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.6 beta1 released (2025/02/13)

Pgpool-II 4.6 beta1 is now released.

Note that this is not a stable version but just for developers.

V4.6 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.5 RC1 released (2023/11/28)

Pgpool-II 4.5 RC1 is now released.

Note that this is not a stable version but just for developers.

V4.5 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.5 beta1 released (2023/11/14)

Pgpool-II 4.5 beta1 is now released.

Note that this is not a stable version but just for developers.

V4.5 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.4 RC1 released (2022/11/22)

Pgpool-II 4.4 RC1 is now released.

Note that this is not a stable version but just for developers.

V4.4 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.4 beta1 released (2022/11/14)

Pgpool-II 4.4 beta1 is now released.

Note that this is not a stable version but just for developers.

V4.4 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.3 RC1 released (2021/11/25)

Pgpool-II 4.3 RC1 is now released. Please take a look at 4.3 RC1

Note that this is not a stable version but just for developers.

V4.3 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.3 beta2 released (2021/11/18)

Pgpool-II 4.3 beta2 is now released. Please take a look at 4.3 beta2

Note that this is not a stable version but just for developers.

V4.3 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.3 beta1 released (2021/11/09)

Pgpool-II 4.3 beta1 is now released.

Note that this is not a stable version but just for developers.

V4.3 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.2 beta1 released (2020/10/27)

Pgpool-II 4.2 beta1 is now released.

Note that this is not a stable version but just for developers.

V4.2 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Pgpool-II 4.2 alpha1 released (2020/10/06)

Pgpool-II 4.2 alpha1 is now released.

Note that this is not a stable version but just for developers.

V4.2 contains new features and enhancements, including:

You can download it from here.

Release notes:English

Old

See this page.

Where can I get commercial support for Pgpool-II?

Some commercial packages include Pgpool-II support. Consulting and annual support can be purchased from SRA OSS LLC (https://www.sraoss.co.jp/index_en.php).