Extensions require a separate package install before you can enable them with CREATE EXTENSION. Depending on the extension, you may need to install the package on all hosts or only on the coordinator. See the individual extension's reference page for details.
Once you've installed the package, activate the extension in each target database:
psql -d <database_name> -c 'CREATE EXTENSION <extension_name>;'
Downloading and installing an EDB-provided extension
You must install the extension on each host in your WarehousePG cluster.
From the coordinator, download the package from the EDB repository:
export EDB_SUBSCRIPTION_TOKEN=<your-token> export EDB_REPO=gpsupp curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_REPO/setup.rpm.sh" | sudo -E bash sudo dnf download edb-whpg<major_version>-<extension_name>
export EDB_SUBSCRIPTION_TOKEN=<your-token> export EDB_REPO=gpsupp curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_REPO/setup.rpm.sh" | sudo -E bash sudo yumdownloader edb-whpg<major_version>-<extension_name>
Where:
<your-token>is the token you received when you registered for the EDB subscription.<major_version>is your WHPG version (6 or 7).<extension_name>is the name of the extension you want to install.
Create a file
all_hostson your WHPG coordinator, which lists all hosts in the WHPG cluster. For example:cdw scdw sdw1 sdw2 sdw3
From the coordinator, use the
gpsyncutility to transfer the package to all hosts in the cluster and then use thegpsshutility to install the package:gpsync -f all_hosts <package-name> =:/tmp gpssh -f all_hosts -e 'sudo dnf install -y /tmp/<package-name>'
gpsync -f all_hosts <package-name> =:/tmp gpssh -f all_hosts -e 'sudo yum install -y /tmp/<package-name>'
Where
<package-name>is the name of the package file you downloaded.