| pgpool-II 4.8beta1 Documentation | |||
|---|---|---|---|
| Prev | Up | Appendix A. Release Notes | Next |
Release Date: 2026-12-XX
This release of Pgpool-II includes the following major changes.
Import the PostgreSQL 19 SQL parser.
Track recent table writes across sessions to control load balancing.
Obtain replication delay from an external command.
Reload SSL certificates without restarting Pgpool-II.
Send extended-query Sync only to participating backends.
Remove frontend/backend protocol version 2 support.
Wait for failover_command and follow_primary_command completion and report failure in pcp_promote_node -s and pcp_detach_node. (Taiki Koshino)
without -g option, these commands now wait for failover and any follow-primary processing to complete. If failover_command or follow_primary_command fails, they report an error identifying the failed command, even if the backend status has already changed. Scripts that invoke these commands may need to allow more time and handle the new error response.
Regression tests 034.promote_node and 046.detach_node cover successful operations and script failures.
Discussion: pcp_promote_node switchover reports success when pg_rewind from follow_primary fails
Remove frontend/backend protocol version 2 support. (Tatsuo Ishii)
Clients that use protocol version 2 must use a client or driver that supports protocol version 3 before upgrading. PostgreSQL 14 and later already reject protocol version 2.
Discussion: Remove frontend/backend protocol version 2
Change the watchdog node-information message format. (Taiki Koshino)
The watchdog node-information message now includes LifecheckStarted. A 4.8 node rejects a message without this field.
Discussion: Proposal: Add lifecheck started status to pcp_watchdog_info
Emit a warning at startup when watchdog is enabled but wd_authkey is empty. (Bo Peng)
Support for an empty wd_authkey may be removed in Pgpool-II 4.9 or later. Users are encouraged to configure the same non-empty authentication key on all Pgpool-II nodes. The following warning is logged when the key is empty:
WARNING: watchdog authentication is disabled because wd_authkey is empty
DETAIL: Support for an empty wd_authkey may be removed in Pgpool-II 4.9 or later.
HINT: Set wd_authkey to a non-empty value on all Pgpool-II nodes.
Discussion: Emit a warning at startup when watchdog is enabled but wd_authkey is empty.
Import the PostgreSQL 19 SQL parser. (Taiki Koshino)
Major changes of the PostgreSQL 19 parser include the following.
Allow GROUP BY to process target-list subqueries that reference outer columns.
Support IGNORE NULLS and RESPECT NULLS for window functions.
Support INSERT ... ON CONFLICT DO SELECT ... RETURNING.
Add REPACK, which combines VACUUM FULL and CLUSTER functionality and supports CONCURRENTLY.
Allow GRANT and REVOKE to specify the effective role for privilege changes.
Allow CHECKPOINT to accept a list of options.
Control load balancing by tracking recently modified tables. (Nadav Shatz)
Set disable_load_balance_on_write to dml_adaptive_global to track recently modified tables across sessions. Reads of a tracked table are temporarily routed to the primary. The tracking period is based on observed replication delay. Regression tests cover table tracking with and without watchdog. The documentation also describes shared-memory sizing and eviction. Related regression tests: 043.track_table_mutation, 044.track_table_mutation_watchdog.
track_table_mutation_ttl_factor Multiplies the observed replication delay to determine how long to track a table. The default is 5.0.
track_table_mutation_max_staleness Caps how long a table can continuously force reads to the primary. The default is 60000 milliseconds.
track_table_mutation_cold_start_duration Sets how long queries are routed to the primary after a child starts or the local watchdog becomes leader. The default is 2000 milliseconds.
track_table_mutation_table_buckets Sets the number of hash buckets. The default is 1024.
track_table_mutation_table_size Sets the maximum number of tables that can be tracked at once. The default is 2048.
Discussion: Proposal: Recent mutated table tracking in memory
Discussion: [PATCH] Two small track_table_mutation follow-ups: doc figures and unused counters
Allow an external command to provide replication delay. (Nadav Shatz)
This feature is useful with PostgreSQL-compatible backends that do not provide pg_stat_replication. Related regression test: 041.external_replication_delay.
replication_delay_source_cmd Specifies a command that receives standby addresses as hostname:port arguments and writes one delay per standby in milliseconds to standard output, in argument order. An empty value (the default) uses the built-in queries.
replication_delay_source_timeout Sets how many seconds Pgpool-II waits for the command to finish. The default is 10 seconds.
Discussion: Proposal: recent access based routing for primary-replica setups
Reload SSL certificates and settings on SIGHUP. (Bob Ross)
New connections can use rotated certificates and keys without restarting Pgpool-II. Existing TLS connections continue using their established sessions. Changing the ssl enable switch still requires a restart. Regression tests cover configuration reload and CA rotation. Related regression test: 042.ssl_reload.
Discussion: Rotate SSL certificates on reload (SIGHUP) without restart
Send Sync only to necessary backends. (Tatsuo Ishii)
Pgpool-II tracks the backends that received extended-query messages, including internal queries that still require synchronization. It sends Sync and waits for ReadyForQuery on those backends, reducing unnecessary round trips. Related regression tests: 039.log_backend_messages, 120.memory_leak_extended_memqcache, 130.declare.
Discussion: Feature: reduce sync messages
Discussion: 120.memory_leak_extended_memqcache fails on master
Add sync message logging to log_per_node_statement and notice_per_node_statement. (Tatsuo Ishii)
log_per_node_statement and notice_per_node_statement can show which backends receive each Sync.
Add Lifecheck Started status to pcp_watchdog_info. (Taiki Koshino)
The Lifecheck Started field shows whether lifecheck has started on each watchdog node.
Update the built-in SSL Diffie-Hellman parameters. (Tatsuo Ishii)
Report replication delay as -1 for down standby nodes. (Taiki Koshino)
SHOW POOL_NODES and pcp_node_info now report -1 when a standby is down or detached, avoiding a stale measurement in the output. Related regression test: 003.failover.
Discussion: Inconsistent and very high replication delay
Add a sleep command to pgproto. (Tatsuo Ishii)
The s command pauses the script for the specified number of milliseconds, allowing PostgreSQL activity to be inspected between protocol messages.
Discussion: Add a sleep command to pgproto
Add a protocol version 2 test mode to pgproto. (Tatsuo Ishii)
The --test-v2 option sends a version 2 startup packet and reads the server response.
The 045.remove_proto_v2 regression test uses pgproto with --test-v2 to verify that Pgpool-II rejects version 2 connections.