pgaudit

provides auditing functionality

Overview

PGDG 1st Party Extension: pgaudit : provides auditing functionality

Information

Metadata

  • Latest Version: 17.0
  • Postgres Support: 17,16,15,14,13
  • Need Load: Explicit Loading Required
  • Need DDL: Need CREATE EXTENSION DDL
  • Relocatable: Can not install to arbitrary schema
  • Trusted: Untrusted, Require Superuser to Create
  • Schemas: N/A
  • Requires: N/A

RPM / DEB

  • RPM Repo: PGDG
  • RPM Name: pgaudit_$v*
  • RPM Ver : 17.0
  • RPM Deps: N/A
  • DEB Repo: PGDG
  • DEB Name: postgresql-$v-pgaudit
  • DEB Ver : 17.0
  • DEB Deps: N/A

Packages

OS Arch PG17 PG16 PG15 PG14 PG13
el8 x86_64 pgaudit_17
PGDG 17.0
pgaudit_16
PGDG 16.0
pgaudit17_15
PGDG 1.7.0
pgaudit16_14
PGDG 1.6.2
pgaudit15_13
PGDG 1.5.2
el8 aarch64 pgaudit_17
PGDG 17.0
pgaudit_16
PGDG 16.0
pgaudit17_15
PGDG 1.7.0
pgaudit16_14
PGDG 1.6.2
pgaudit15_13
PGDG 1.5.2
el9 x86_64 pgaudit_17
PGDG 17.0
pgaudit_16
PGDG 16.0
pgaudit17_15
PGDG 1.7.0
pgaudit16_14
PGDG 1.6.2
pgaudit15_13
PGDG 1.5.2
el9 aarch64 pgaudit_17
PGDG 17.0
pgaudit_16
PGDG 16.0
pgaudit17_15
PGDG 1.7.0
pgaudit16_14
PGDG 1.6.2
pgaudit15_13
PGDG 1.5.2
d12 x86_64 postgresql-17-pgaudit
PGDG 17.0
postgresql-16-pgaudit
PGDG 16.0
postgresql-15-pgaudit
PGDG 1.7.0
postgresql-14-pgaudit
PGDG 1.6.2
postgresql-13-pgaudit
PGDG 1.5.2
d12 aarch64 postgresql-17-pgaudit
PGDG 17.0
postgresql-16-pgaudit
PGDG 16.0
postgresql-15-pgaudit
PGDG 1.7.0
postgresql-14-pgaudit
PGDG 1.6.2
postgresql-13-pgaudit
PGDG 1.5.2
u22 x86_64 postgresql-17-pgaudit
PGDG 17.0
postgresql-16-pgaudit
PGDG 16.0
postgresql-15-pgaudit
PGDG 1.7.0
postgresql-14-pgaudit
PGDG 1.6.2
postgresql-13-pgaudit
PGDG 1.5.2
u22 aarch64 postgresql-17-pgaudit
PGDG 17.0
postgresql-16-pgaudit
PGDG 16.0
postgresql-15-pgaudit
PGDG 1.7.0
postgresql-14-pgaudit
PGDG 1.6.2
postgresql-13-pgaudit
PGDG 1.5.2
u24 x86_64 postgresql-17-pgaudit
PGDG 17.0
postgresql-16-pgaudit
PGDG 16.0
postgresql-15-pgaudit
PGDG 1.7.0
postgresql-14-pgaudit
PGDG 1.6.2
postgresql-13-pgaudit
PGDG 1.5.2
u24 aarch64 postgresql-17-pgaudit
PGDG 17.0
postgresql-16-pgaudit
PGDG 16.0
postgresql-15-pgaudit
PGDG 1.7.0
postgresql-14-pgaudit
PGDG 1.6.2
postgresql-13-pgaudit
PGDG 1.5.2

Installation

Install pgaudit via the pig CLI tool:

pig ext install pgaudit
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgaudit"]}'   # common case
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgaudit17"]}' # pg15 @ el
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgaudit16"]}' # pg14 @ el
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgaudit15"]}' # pg13 @ el

Install pgaudit RPM from YUM repo directly:

dnf install pgaudit_17*;
dnf install pgaudit_16*;
dnf install pgaudit_15*;
dnf install pgaudit_14*;
dnf install pgaudit_13*;

Install pgaudit DEB from APT repo directly:

apt install postgresql-17-pgaudit;
apt install postgresql-16-pgaudit;
apt install postgresql-15-pgaudit;
apt install postgresql-14-pgaudit;
apt install postgresql-13-pgaudit;

Extension pgaudit has to be added to shared_preload_libraries

shared_preload_libraries = 'pgaudit'; # add to pg cluster config

Enable pgaudit extension on PostgreSQL cluster:

CREATE EXTENSION pgaudit;




Last modified 2025-02-17: add extension part (cfa504b)