This topic covers installation steps for the extensions packaged with VMware Postgres Operator 1.2 and later. The extensions include:
Refer to the linked extension documentation for instructions on using the extensions.
pgAudit is packaged with the Postgres instance images. It needs to be manually installed on the primary data pod:
Connect to the primary pod via psql
and use:
CREATE EXTENSION pgaudit;
Verify the installation using a command similar to:
select count(*) from pg_extension where extname = 'pgaudit';
count
-------
1
(1 row)
For further details on Session and Object logging, see Session Audit logging and Object Session logging in the VMware Postgres documentation.
Orafce is packaged with the Postgres instance images. It needs to be manually installed on the primary data pod:
Connect to the primary pod via psql
and use:
CREATE EXTENSION orafce;
To verify the installation:
SELECT months_between(date '1995-02-02', date '1995-01-01');
The output should be similar to:
months_between
------------------
1.03225806451613
(1 row)
For more information, refer to the Orafce documention.
PostGIS is packaged with the Postgres instance images. It needs to be manually installed on the primary data pod:
Connect to the primary pod via psql
and use:
CREATE EXTENSION postgis;
To verify the installation:
SELECT st_pointfromtext('POINT(1 1)');
The output should be similar to:
st_pointfromtext
--------------------------------------------
0101000000000000000000F03F000000000000F03F
(1 row)
For more information refer to the PostGIS documentation.
Connect to the primary pod via psql
and use:
CREATE EXTENSION address_standardizer;
To verify the installation:
SELECT num, street, city, state, zip FROM parse_address('1 Devonshire Place PH301, Boston, MA 02109');
You should see output similar to:
num | street | city | state | zip
-----+------------------------+--------+-------+-------
1 | Devonshire Place PH301 | Boston | MA | 02109
(1 row)
For more information refer to the Address Standardizer documentation.