pg_promoter
pg promoter is simplified clustering module based on bgworker.
pg_promoter · pg promoter is simplified clustering module based on bgworker.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101597 | pg_promoter | pg_promoter | 1.0 | ADMIN | Unknown | C |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_promoter.control)
- Official implementation source
pg_promoter is an early background-worker prototype that runs only on a standby, polls the primary, and promotes locally after a configured number of failed probes. It does not provide a complete consensus, quorum, or fencing system.
Core Workflow
Install the library on a disposable standby, configure it for preloading, and restart:
The source-code spellings are keepalives_time and keepalives_count; use those plural forms even though the README examples use singular names. The worker promotes after consecutive connection failures reach the configured count.
Important Settings
pg_promoter.primary_conninfois the libpq connection string used to probe the primary.pg_promoter.keepalives_timeis the polling interval in seconds.pg_promoter.keepalives_countis the failed-probe threshold before promotion.
Requirements and Caveats
- The reviewed control, registry, or catalog evidence identifies version
1.0. - The control file marks the extension as relocatable.
- This is a preload-only worker; the reviewed repository does not provide extension SQL.
- Network failure is not proof that the old primary is down. Without external fencing this design can create split brain and data loss.
- The code uses an old trigger-file promotion path and PostgreSQL internals. Treat it as historical prototype source and test only against the server generation it was written for.