pgautofailover

pg_auto_failover

Overview

PGDG 1st Party Extension: pgautofailover : pg_auto_failover

Information

Metadata

  • Latest Version: 2.1
  • Postgres Support: 17,16,15,14,13
  • Need Load: Explicit Loading Required
  • Need DDL: Need CREATE EXTENSION DDL
  • Relocatable: Can be installed into other schemas
  • Trusted: Untrusted, Require Superuser to Create
  • Schemas: N/A
  • Requires: btree_gist

RPM / DEB

  • RPM Repo: PGDG
  • RPM Name: pg_auto_failover_$v*
  • RPM Ver : 2.1
  • RPM Deps: N/A
  • DEB Repo: PGDG
  • DEB Name: postgresql-$v-auto-failover
  • DEB Ver : 2.1
  • DEB Deps: N/A

Packages

OS Arch PG17 PG16 PG15 PG14 PG13
el8 x86_64 pg_auto_failover_16
PGDG 2.1
pg_auto_failover_15
PGDG 2.1
pg_auto_failover_14
PGDG 2.1
pg_auto_failover_13
PGDG 2.1
el8 aarch64 pg_auto_failover_16
PGDG 2.1
pg_auto_failover_15
PGDG 2.1
pg_auto_failover_14
PGDG 2.1
pg_auto_failover_13
PGDG 2.1
el9 x86_64 pg_auto_failover_16
PGDG 2.1
pg_auto_failover_15
PGDG 2.1
pg_auto_failover_14
PGDG 2.1
pg_auto_failover_13
PGDG 2.1
el9 aarch64 pg_auto_failover_16
PGDG 2.1
pg_auto_failover_15
PGDG 2.1
pg_auto_failover_14
PGDG 2.1
pg_auto_failover_13
PGDG 2.1
d12 x86_64 postgresql-17-auto-failover
PGDG 2.1
postgresql-16-auto-failover
PGDG 2.1
postgresql-15-auto-failover
PGDG 2.1
postgresql-14-auto-failover
PGDG 2.1
postgresql-13-auto-failover
PGDG 2.1
d12 aarch64 postgresql-17-auto-failover
PGDG 2.1
postgresql-16-auto-failover
PGDG 2.1
postgresql-15-auto-failover
PGDG 2.1
postgresql-14-auto-failover
PGDG 2.1
postgresql-13-auto-failover
PGDG 2.1
u22 x86_64 postgresql-17-auto-failover
PGDG 2.1
postgresql-16-auto-failover
PGDG 2.1
postgresql-15-auto-failover
PGDG 2.1
postgresql-14-auto-failover
PGDG 2.1
postgresql-13-auto-failover
PGDG 2.1
u22 aarch64 postgresql-17-auto-failover
PGDG 2.1
postgresql-16-auto-failover
PGDG 2.1
postgresql-15-auto-failover
PGDG 2.1
postgresql-14-auto-failover
PGDG 2.1
postgresql-13-auto-failover
PGDG 2.1
u24 x86_64 postgresql-17-auto-failover
PGDG 2.1
postgresql-16-auto-failover
PGDG 2.1
postgresql-15-auto-failover
PGDG 2.1
postgresql-14-auto-failover
PGDG 2.1
postgresql-13-auto-failover
PGDG 2.1
u24 aarch64 postgresql-17-auto-failover
PGDG 2.1
postgresql-16-auto-failover
PGDG 2.1
postgresql-15-auto-failover
PGDG 2.1
postgresql-14-auto-failover
PGDG 2.1
postgresql-13-auto-failover
PGDG 2.1

Installation

Install pgautofailover via the pig CLI tool:

pig ext install pgautofailover

Install pgautofailover via Pigsty playbook:

./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgautofailover"]}' # -l <cls>

Install pgautofailover RPM from YUM repo directly:

dnf install pg_auto_failover_16*;
dnf install pg_auto_failover_15*;
dnf install pg_auto_failover_14*;
dnf install pg_auto_failover_13*;

Install pgautofailover DEB from APT repo directly:

apt install postgresql-17-auto-failover;
apt install postgresql-16-auto-failover;
apt install postgresql-15-auto-failover;
apt install postgresql-14-auto-failover;
apt install postgresql-13-auto-failover;

Extension pgautofailover has to be added to shared_preload_libraries

shared_preload_libraries = 'pgautofailover'; # add to pg cluster config

Enable pgautofailover extension on PostgreSQL cluster:

CREATE EXTENSION pgautofailover CASCADE;




Last modified 2025-02-17: add extension part (cfa504b)