12 Steps To Enabling Audit in PostgreSQL
12 Steps To Enabling Audit in PostgreSQL
2 of 15 2/2/2024, 11:28 PM
12 Steps to Enabling Audit in PostgreSQL | Official Pythian®® Blog https://www.pythian.com/blog/12-essential-steps-for-a-comprehensive-...
3 of 15 2/2/2024, 11:28 PM
12 Steps to Enabling Audit in PostgreSQL | Official Pythian®® Blog https://www.pythian.com/blog/12-essential-steps-for-a-comprehensive-...
Dependencies Resolved
==============================================================================================
================================================================
Package Arch Version
Repository Size
==============================================================================================
================================================================
Installing:
pgaudit15_13 x86_64 1.5.2-1.rhel7
pgdg13 47 k
Transaction Summary
==============================================================================================
================================================================
Install 1 Package
Installed:
pgaudit15_13.x86_64 0:1.5.2-1.rhel7
Complete!
4 of 15 2/2/2024, 11:28 PM
12 Steps to Enabling Audit in PostgreSQL | Official Pythian®® Blog https://www.pythian.com/blog/12-essential-steps-for-a-comprehensive-...
5 of 15 2/2/2024, 11:28 PM
12 Steps to Enabling Audit in PostgreSQL | Official Pythian®® Blog https://www.pythian.com/blog/12-essential-steps-for-a-comprehensive-...
-------------
none
(1 row)
6 of 15 2/2/2024, 11:28 PM
12 Steps to Enabling Audit in PostgreSQL | Official Pythian®® Blog https://www.pythian.com/blog/12-essential-steps-for-a-comprehensive-...
2023-05-25 22:38:52.140 IST [3135] STATEMENT: create table pythian (id number);
2023-05-25 22:39:01.460 IST [3135] LOG: AUDIT: SESSION,1,1,READ,SELECT,,,"SELECT
pg_catalog.quote_ident(c.relname) FROM pg_catalog.pg_class c WHERE c.relkind IN ('r', 'f',
'v', 'p') AND substring(pg_catalog.quote_ident(c.relname),1,2)='ed' AND
pg_catalog.pg_table_is_visible(c.oid) AND c.relnamespace <> (SELECT oid FROM
pg_catalog.pg_namespace WHERE nspname = 'pg_catalog')
UNION
SELECT pg_catalog.quote_ident(n.nspname) || '.' FROM pg_catalog.pg_namespace n WHERE
substring(pg_catalog.quote_ident(n.nspname) || '.',1,2)='ed' AND (SELECT pg_catalog.count(*)
7 of 15 2/2/2024, 11:28 PM
12 Steps to Enabling Audit in PostgreSQL | Official Pythian®® Blog https://www.pythian.com/blog/12-essential-steps-for-a-comprehensive-...
8 of 15 2/2/2024, 11:28 PM
12 Steps to Enabling Audit in PostgreSQL | Official Pythian®® Blog https://www.pythian.com/blog/12-essential-steps-for-a-comprehensive-...
9 of 15 2/2/2024, 11:28 PM
12 Steps to Enabling Audit in PostgreSQL | Official Pythian®® Blog https://www.pythian.com/blog/12-essential-steps-for-a-comprehensive-...
12 of 15 2/2/2024, 11:28 PM
12 Steps to Enabling Audit in PostgreSQL | Official Pythian®® Blog https://www.pythian.com/blog/12-essential-steps-for-a-comprehensive-...
13 of 15 2/2/2024, 11:28 PM
12 Steps to Enabling Audit in PostgreSQL | Official Pythian®® Blog https://www.pythian.com/blog/12-essential-steps-for-a-comprehensive-...
14 of 15 2/2/2024, 11:28 PM
12 Steps to Enabling Audit in PostgreSQL | Official Pythian®® Blog https://www.pythian.com/blog/12-essential-steps-for-a-comprehensive-...
15 of 15 2/2/2024, 11:28 PM