# pg_replica

Consensus-driven failover for PostgreSQL (Raft control plane). This is its Debian/Ubuntu apt repository.

## Install

    curl -fsSL https://hyperiondb.github.io/hyperiondb/install.sh | sudo bash
    sudo apt-get install -y postgresql-18-pg-replica      # or -17 / -16 / -15 / -14

Then enable it:

    sudo sed -i "s/^#\?shared_preload_libraries.*/shared_preload_libraries = 'pg_replica'/" \
      /etc/postgresql/18/main/postgresql.conf
    sudo systemctl restart postgresql

    CREATE EXTENSION pg_replica;

Source & docs: github.com/hyperiondb/hyperiondb