This documentation is sourced from a third-party project and is not maintained by pgEdge.
Compile and Install
pgAudit can be compiled against an installed copy of PostgreSQL with development packages using PGXS.
The following instructions are for RHEL 7.
Clone the pgAudit extension:
git clone https://github.com/pgaudit/pgaudit.git
cd pgaudit
REL_16_STABLE branch (note that the stable branch may not exist for unreleased versions of PostgreSQL):
git checkout REL_16_STABLE
make install USE_PGXS=1 PG_CONFIG=/usr/pgsql-16/bin/pg_config
test.