Search Postgresql Archives

SV: postgres auditing truncates and deletes on tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


I have used this setup to do something similar.


https://github.com/2ndQuadrant/audit-trigger


KR, Mikael Gustavsson


Från: Ayub M <hiayub@xxxxxxxxx>
Skickat: den 15 december 2020 18:13:39
Till: PostgreSQL General
Ämne: postgres auditing truncates and deletes on tables
 

for an RDS Aurora PostgreSQL v11.7 database I want to setup DDL and truncate and delete auditing.

I am setting log_statement to DDL, to log all DDLs (this excludes truncate statements). I also want to setup auditing only for deletes and truncates on tables. I don't want to set log_statement to all, as this would fill up my logs.

Checking in pg_audit, it supports write class which includes delete and truncate, but it also includes write/update and copy which I don't need.

Is there any way to setup auditing to audit DDL plus deletes/truncates only using pg_audit/native auditing?


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux