notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
Port details
pg_auto_failover Postgres extension for automated failover and high-availability
2.2 databases on this many watch lists=1 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 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 search for ports maintained by this maintainer
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
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (21 items)
Collapse this list.
  1. /usr/local/share/licenses/postgresql17-pg_auto_failover-2.2/catalog.mk
  2. /usr/local/share/licenses/postgresql17-pg_auto_failover-2.2/LICENSE
  3. /usr/local/share/licenses/postgresql17-pg_auto_failover-2.2/PostgreSQL
  4. bin/pg_autoctl
  5. lib/postgresql/pgautofailover.so
  6. share/postgresql/extension/pgautofailover--1.0--1.1.sql
  7. share/postgresql/extension/pgautofailover--1.0.sql
  8. share/postgresql/extension/pgautofailover--1.1--1.2.sql
  9. share/postgresql/extension/pgautofailover--1.2--1.3.sql
  10. share/postgresql/extension/pgautofailover--1.3--1.4.sql
  11. share/postgresql/extension/pgautofailover--1.4--1.5.sql
  12. share/postgresql/extension/pgautofailover--1.5--1.6.sql
  13. share/postgresql/extension/pgautofailover--1.6--2.0.sql
  14. share/postgresql/extension/pgautofailover--2.0--2.1.sql
  15. share/postgresql/extension/pgautofailover--2.1--2.2.sql
  16. share/postgresql/extension/pgautofailover--2.2--dummy.sql
  17. share/postgresql/extension/pgautofailover--2.2.sql
  18. share/postgresql/extension/pgautofailover.control
  19. @owner
  20. @group
  21. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • pg_auto_failover
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):
postgresql17-pg_auto_failover
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.22.2--2.2n/an/an/a
FreeBSD:13:quarterly2.22.2--2.2n/an/an/a
FreeBSD:14:latest2.22.2--2.2---
FreeBSD:14:quarterly2.22.2--2.2---
FreeBSD:15:latest2.22.2n/a-n/an/a--
FreeBSD:15:quarterly2.22.2n/a-n/an/a--
FreeBSD:16:latest2.22.2n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. gmake>=4.4.1 : devel/gmake
  2. vacuumlo : databases/postgresql17-contrib
  3. postgres : databases/postgresql17-server
Runtime dependencies:
  1. vacuumlo : databases/postgresql17-contrib
  2. 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:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/hapostgres/pg_auto_failover/tar.gz/v2.2?dummy=/
Collapse this list.

Number of commits found: 3

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.2
16 Mar 2026 16:18:10
commit hash: 5d02335e59ec3d4bbae0d9260bf144708c21467fcommit hash: 5d02335e59ec3d4bbae0d9260bf144708c21467fcommit hash: 5d02335e59ec3d4bbae0d9260bf144708c21467fcommit hash: 5d02335e59ec3d4bbae0d9260bf144708c21467f files touched by this commit
Palle Girgensohn (girgen) search for other commits by this committer
*/*: PostgreSQL-13 removed

Bump lowest required version for some PostgreSQL extensions as a
consequence thereof.
2.2
22 Feb 2026 16:52:01
commit hash: cac7f24191df18d1cec7f52ad3e8097432330641commit hash: cac7f24191df18d1cec7f52ad3e8097432330641commit hash: cac7f24191df18d1cec7f52ad3e8097432330641commit hash: cac7f24191df18d1cec7f52ad3e8097432330641 files touched by this commit
Dave Cottlehuber (dch) search for other commits by this committer
Author: Pat Maddox
databases/pg_auto_failover-devel: new port: PG extension for automated failover
and HA

WWW: https://pg-auto-failover.readthedocs.io
PR: 292994
2.2
22 Feb 2026 16:52:01
commit hash: 5be8c5775761808cd1cf3721958e0eb0830bc174commit hash: 5be8c5775761808cd1cf3721958e0eb0830bc174commit hash: 5be8c5775761808cd1cf3721958e0eb0830bc174commit hash: 5be8c5775761808cd1cf3721958e0eb0830bc174 files touched by this commit
Dave Cottlehuber (dch) search for other commits by this committer
Author: Pat Maddox
databases/pg_auto_failover: new port: PG extension for automated failover and HA

WWW: https://pg-auto-failover.readthedocs.io
PR: 292990

Number of commits found: 3