To use the Postgres Analytics Accelerator (PGAA), you must install the extension on your Postgres instance and enable the background worker for the query engine. See Compatibility for a full list of supported platforms.
Note
If you are installing PGAA on a WarehousePG cluster, follow the WarehousePG-specific installation instructions instead, as the installation and configuration process differs from a standard Postgres deployment.
Downloading and installing the package
Download the package from the EDB repository:
export EDB_SUBSCRIPTION_TOKEN=<your-token> export EDB_SUBSCRIPTION_PLAN=<your-subscription-plan> curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_SUBSCRIPTION_PLAN/setup.deb.sh" | sudo -E bash sudo apt-get install -y <postgresql-distribution>-pgaa
export EDB_SUBSCRIPTION_TOKEN=<your-token> EDB_SUBSCRIPTION_PLAN=<your-subscription-plan> curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_SUBSCRIPTION_PLAN/setup.rpm.sh" | sudo -E bash sudo dnf install -y <postgres-distribution>-pgaa
Where
$EDB_SUBSCRIPTION_TOKENis the token you received when you registered for the EDB subscription.$EDB_SUBSCRIPTION_PLANis eitherstandard(for PGE or Community Postgres) orenterprise(for EPAS).<postgres-distribution>specifies your Postgres distribution (edb-postgresextended,edb-as, orpostgresql), and version.
Enabling the extension
To initialize PGAA, you must update your postgresql.conf file. Adding pgaa to shared_preload_libraries allows Postgres to manage the life cycle of the Seafowl query engine as a background worker.
Edit
postgresql.confand append PGAA and PGFS to the list of shared libraries using a comma separator:shared_preload_libraries = '<other_libraries>,pgaa,pgfs' pgaa.autostart_seafowl = on
Restart your Postgres service to load the new library.
Log in to your Postgres instance. Depending on whether you are working on a new installation or an update, run the appropriate command:
For new installations:
CREATE EXTENSION IF NOT EXISTS pgaa CASCADE;
Using
CASCADEensures that required dependencies, such as the Postgres File System (PGFS), are automatically installed.For upgrading an existing installation:
ALTER EXTENSION pgaa UPDATE;
Verifying the installation
Confirm that the extension is active using the \dx meta-command or by calling the version function:
SELECT pgaa.pgaa_version();
Once installed, you can configure a storage location to grant PGAA access to your data lake, or integrate Postgres with an Iceberg catalog.