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 should work on most Unix-like operating systems.
Clone the pgAudit extension:
git clone https://github.com/pgaudit/pgaudit.git
cd pgaudit
REL_18_STABLE branch (note that the stable branch may not exist for unreleased versions of PostgreSQL):
git checkout REL_18_STABLE
make install USE_PGXS=1 PG_CONFIG=/usr/pgsql-18/bin/pg_config
test.