Skip to content
SPECIFICTION
Get listed

Pgpool-II vs SPQR

Pgpool-II

pgpool.net

SPQR

docs.pg-sharding.tech

Side by side

FigurePgpool-IISPQR
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
LinuxYesYes
API—Yes
Self-hostedYesYes
Plans published11
Spec score · Database Proxy Software7.4 (#21)7.8 (#9)
LicenseThe license permits use, copying, modification, and distribution of the software and documentation for any purpose without a fee.The source is distributed under the PostgreSQL Global Development Group License.
SupportCommunity support is provided through mailing lists and GitHub Issues, while SRA OSS K.K. offers commercial technical support, consulting, and system integration.The project directs users to its Telegram chat for discussion and GitHub Issues for bug reports or feature requests.

Plans

Pgpool-II

  • Pgpool-IIFree

Pgpool-II pricing →

SPQR

  • SPQRFree

SPQR pricing →

In their own words

Pgpool-II

Pgpool-II is free, self-hosted middleware positioned between PostgreSQL servers and database clients. It relays PostgreSQL protocol messages, reuses matching server connections to reduce overhead, and distributes SELECT queries across replicated databases. High-availability functions include automatic failover, Watchdog, quorum, and split-brain prevention. Additional features include replication, online recovery, connection limiting, and an in-memory query cache. The project is available in binary and source formats, including RPM packages for Red Hat Enterprise Linux and compatible distributions; Debian and Ubuntu users are directed to PostgreSQL community packages. Authentication supports trust, clear-text password, MD5, SCRAM-SHA-256, certificates, PAM, and LDAP, but not GSSAPI. SSL can protect frontend and backend traffic when enabled; it is off by default and requires OpenSSL support. Community assistance is available through mailing lists and GitHub Issues, while SRA OSS K.K. offers commercial support, consulting, and integration. The license permits use, modification, copying, and distribution without a fee.

Visit pgpool.net

SPQR

SPQR is a self-hosted query router for horizontally scaling PostgreSQL through sharding. It can extract a sharding key from a query and route it to the relevant key range and shard when possible; keys can use one column or several. Queries can also specify a key or shard in a SQL comment. Applications connect using the PostgreSQL protocol, and the router and coordinator provide administrative consoles accessible through psql. SPQR supports one-phase and two-phase commit strategies; two-phase commit provides atomicity across shards and requires max_prepared_transactions greater than zero on each shard. The system can move data between shards to balance workload, and the project describes reducing transferred ranges to limit locking impact. Its documentation includes Docker and configuration-file deployment instructions. SPQR is free and distributed under the PostgreSQL Global Development Group License. The FAQ cautions that it is not suited to complex cross-shard queries, transactions modifying multiple shards or OLAP workloads, and reports a roughly 10–30% performance drop versus vanilla PostgreSQL depending on workload.

Visit docs.pg-sharding.tech