| Port details |
- pg_auto_failover Postgres extension for automated failover and high-availability
- 2.2 databases
=1 Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one. - Maintainer: pat@patmaddox.com
 - Port Added: 2026-02-22 16:57:05
- Last Update: 2026-03-16 16:18:10
- Commit Hash: 5d02335
- People watching this port, also watch:: tcpdump, metalock
- License: PostgreSQL
- WWW:
- https://pg-auto-failover.readthedocs.io
- Description:
- pg_auto_failover is an extension and service for PostgreSQL that
monitors and manages automated failover for a Postgres cluster. It is
optimized for simplicity and correctness and supports Postgres 13 to
17.
pg_auto_failover supports several Postgres architectures and
implements a safe automated failover for your Postgres service. It is
possible to get started with only two data nodes which will be given
the roles of primary and secondary by the monitor.
The pg_auto_failover Monitor implements a state machine and relies on
in-core PostgreSQL facilities to deliver HA. For example, when the
secondary node is detected to be unavailable, or when its lag is too
much, then the Monitor removes it from the synchronous_standby_names
setting on the primary node. Until the secondary is back to being
monitored healthy, failover and switchover operations are not allowed,
preventing data loss.
pg_auto_failover consists of the following parts:
- a PostgreSQL extension named pgautofailover
- a PostgreSQL service to operate the pg_auto_failover monitor
- a pg_auto_failover keeper to operate your PostgreSQL instances, see
pg_autoctl run
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - USE_RC_SUBR (Service Scripts)
-
- Dependency lines:
-
- postgresql17-pg_auto_failover>0:databases/pg_auto_failover
- Conflicts:
- CONFLICTS:
- postgresql*-pg_auto_failover*
- To install the port:
- cd /usr/ports/databases/pg_auto_failover/ && make install clean
- To add the package, run one of these commands:
- pkg install databases/pg_auto_failover
- pkg install postgresql17-pg_auto_failover
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: postgresql17-pg_auto_failover
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1761347036
SHA256 (hapostgres-pg_auto_failover-v2.2_GH0.tar.gz) = 0f4018564e620592fcfb43d52ea2bc3ccba33bd824352fa9c7e55eb2ba0a4f6c
SIZE (hapostgres-pg_auto_failover-v2.2_GH0.tar.gz) = 1140914
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- gmake>=4.4.1 : devel/gmake
- vacuumlo : databases/postgresql17-contrib
- postgres : databases/postgresql17-server
- Runtime dependencies:
-
- vacuumlo : databases/postgresql17-contrib
- postgres : databases/postgresql17-server
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- databases_pg_auto_failover
- USES:
- gmake pgsql:14-17
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|