Enterprise Postgres packages for Enterprise Linux, Debian and Ubuntu, on x86_64 and arm64. Browse the repository
Package repository

Install pgEdge Enterprise Postgres

Postgres with pgEdge extensions, operations tools, pgAdmin 4, Agentic AI Toolkit, AI DBA Workbench and community extensions: dnf and apt packages for Enterprise Linux, Debian and Ubuntu on x86_64 and arm64.

PostgreSQL 19

Tick more than one to install several versions side by side.

None extra
Postgres
pgEdge extensions
Operations
pgAdmin 4
Agentic AI Toolkit
AI DBA Workbench
Community extensions
New in the repo

Components not built for your selection, and those your base install already includes, are greyed out.

Rocky Linux 9, x86_64 / amd64, PostgreSQL 19
Configure the repository first

pgEdge's repositories take a client certificate, and arrive disabled until one is installed. One page covers it: add the repository, make the key and request on this machine, install the certificate pgEdge sends back. The commands below assume it is done. Configure the repository.

1. Run on the server
# Prerequisites: EPEL and CodeReady Builder (CRB)
sudo dnf install -y epel-release dnf-plugins-core
sudo dnf config-manager --set-enabled crb

# If the PGDG community repo is enabled, disable it first:
#   sudo dnf config-manager --set-disabled 'pgdg*'

# Add the pgEdge repository
sudo dnf install -y https://downloads.pgedge.com/reporpm/pgedge-release-latest.noarch.rpm

# Install packages
sudo dnf install -y pgedge-enterprise-postgres_19

# Initialize, start on boot, and verify
sudo /usr/pgsql-19/bin/postgresql-19-setup initdb
sudo systemctl enable --now postgresql-19
sudo -u postgres /usr/pgsql-19/bin/psql -c "SELECT version();"
2. Configure what you installed
# Libraries these extensions need loaded at start (replaces the current list: on a server in use, add to it)
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET shared_preload_libraries = 'pgaudit'"
sudo systemctl restart postgresql-19
# Create the extensions in each database that uses them (here: postgres)
sudo -u postgres /usr/pgsql-19/bin/psql \
    -c "CREATE EXTENSION IF NOT EXISTS lolor CASCADE" \
    -c "CREATE EXTENSION IF NOT EXISTS pgaudit CASCADE" \
    -c "CREATE EXTENSION IF NOT EXISTS vector CASCADE" \
    -c "CREATE EXTENSION IF NOT EXISTS postgis CASCADE" \
    -c "CREATE EXTENSION IF NOT EXISTS postgis_raster CASCADE" \
    -c "CREATE EXTENSION IF NOT EXISTS postgis_sfcgal CASCADE" \
    -c "CREATE EXTENSION IF NOT EXISTS postgis_topology CASCADE" \
    -c "CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder CASCADE" \
    -c "CREATE EXTENSION IF NOT EXISTS address_standardizer CASCADE" \
    -c "CREATE EXTENSION IF NOT EXISTS address_standardizer_data_us CASCADE" \
    -c "CREATE EXTENSION IF NOT EXISTS snowflake CASCADE"
3. Optional: make this server a Spock 5 node
# Skip this unless the server replicates with Spock. Run it on every node.
# Settings for a small cluster (two or three nodes, one database); for more, see the sizing in the Spock docs
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET wal_level = 'logical'"
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET track_commit_timestamp = 'on'"
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET max_worker_processes = '10'"
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET max_replication_slots = '10'"
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET max_wal_senders = '10'"
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET listen_addresses = '*'"
# Spock loaded at start, with the libraries from the steps above
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET shared_preload_libraries = 'spock', 'pgaudit'"
# Replicate DDL (CREATE TABLE, ...) too; new tables join replication by themselves
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET spock.enable_ddl_replication = 'on'"
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET spock.include_ddl_repset = 'on'"
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET spock.allow_ddl_from_functions = 'on'"
# Postgres releases with the 2026 security setting output_plugin_libraries must allow Spock's plugin
if [ -n "$(sudo -u postgres /usr/pgsql-19/bin/psql -XAt -c "SELECT current_setting('output_plugin_libraries', true)")" ]; then
  sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET output_plugin_libraries = 'pgoutput', 'test_decoding', 'spock_output'"
fi
# This node's number, different on every node: 1 on n1, 2 on n2, ... (Snowflake IDs and large object ids include it)
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET snowflake.node = '1'"
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER SYSTEM SET lolor.node = '1'"
# The nodes connect to each other as postgres with a password, the same on every node (YOUR-PASSWORD);
# NODE-NETWORK: the network of all nodes (for example 10.0.0.0/24)
sudo -u postgres /usr/pgsql-19/bin/psql -c "ALTER ROLE postgres PASSWORD 'YOUR-PASSWORD'"
sudo -u postgres bash -c "umask 077; echo '*:*:*:postgres:YOUR-PASSWORD' > ~/.pgpass"
echo 'host all postgres NODE-NETWORK scram-sha-256' | sudo tee -a /var/lib/pgsql/19/data/pg_hba.conf
# If a firewall is on, let the other nodes reach port 5432
if systemctl is-active --quiet firewalld; then sudo firewall-cmd --permanent --add-port=5432/tcp && sudo firewall-cmd --reload; fi
sudo systemctl restart postgresql-19
sudo -u postgres /usr/pgsql-19/bin/psql -c "CREATE EXTENSION IF NOT EXISTS spock"
# This node: a name (n1, n2, ...) and the address the other nodes reach it at
sudo -u postgres /usr/pgsql-19/bin/psql -c "SELECT spock.node_create(node_name := 'n1', dsn := 'host=THIS-NODE-ADDRESS port=5432 dbname=postgres user=postgres')"
# Large objects replicate through LOLOR's tables
sudo -u postgres /usr/pgsql-19/bin/psql -c "SELECT spock.repset_add_table('default', 'lolor.pg_largeobject')" -c "SELECT spock.repset_add_table('default', 'lolor.pg_largeobject_metadata')"

# Once every node is set up: on each node, subscribe to every other node (here n1 to n2)
sudo -u postgres /usr/pgsql-19/bin/psql -c "SELECT spock.sub_create(subscription_name := 'sub_n1_n2', provider_dsn := 'host=OTHER-NODE-ADDRESS port=5432 dbname=postgres user=postgres')"
sudo -u postgres /usr/pgsql-19/bin/psql -c "SELECT spock.sub_wait_for_sync('sub_n1_n2')"
# Check: every subscription says replicating
sudo -u postgres /usr/pgsql-19/bin/psql -c "SELECT subscription_name, status, provider_node FROM spock.sub_show_status()"

# Your data: what's left to you, with examples to run in psql
#   Tables created before Spock are not replicated: add them on every node
#     SELECT spock.repset_add_all_tables('default', ARRAY['public']);
#   Every table needs a primary key, or its UPDATEs and DELETEs are not replicated
#     ALTER TABLE orders ADD PRIMARY KEY (id);
#   Sequences: nodes would hand out the same numbers; use Snowflake sequences (unique across nodes)
#     SELECT snowflake.convert_sequence_to_snowflake('orders_id_seq'::regclass);   -- on one node: it reaches the others
#   Partitions created later: add each one
#     SELECT spock.repset_add_partition('public.sales', 'public.sales_2027');
#   Another database: create it on every node, then CREATE EXTENSION spock, node_create and sub_create in it (dbname=...)
#   Not replicated: UNLOGGED and TEMPORARY tables, CREATE DATABASE, large objects outside LOLOR
#   A node joining a cluster that already has data: see Zodan in the Spock docs
# More (adding nodes, conflicts, monitoring): https://docs.pgedge.com/spock-v5/
4. Optional: check the Spock nodes with ACE
# On one node, once every node is subscribed: do the nodes hold the same data? YOUR-PASSWORD as in the Spock steps;
# one [cluster.nN] section per node
mkdir -p ~/ace && cd ~/ace && { [ -f ace.yaml ] || ace config init; }
printf '[cluster]\ndbname=postgres\nuser=postgres\npassword=YOUR-PASSWORD\nport=5432\n\n[cluster.n1]\nhost=THIS-NODE-ADDRESS\n\n[cluster.n2]\nhost=OTHER-NODE-ADDRESS\n' > pg_service.conf
chmod 600 pg_service.conf
ace spock-diff cluster
# A table (it reports the rows that differ; ace table-repair fixes them): ace table-diff --ensure-pgcrypto cluster public.orders
# More (repairs, scheduled checks, its API): https://docs.pgedge.com/ace/

Installing replaces any community Postgres packages on this host.