Configuring pgaudit
In
postgresql.conf, addpgauditto theshared_preload_librariesparameter:shared_preload_libraries = 'pgaudit'
If
shared_preload_librarieshas other extensions, then you can addpgauditto the list. The order doesn't matter.
- Restart Postgres.
Create the
pgauditextension in your database:CREATE EXTENSION pgaudit;
For detailed information on other configuration steps, see the official pgaudit documentation.
Could this page be better? Report a problem or suggest an addition!