Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable Audit Trail on PostgreSQL

I am currently using PostgreSQL 9.1. I want to enable pg Audit Trail.

Can someone please help me with that as I am totally new on this thing.

like image 544
Anurag Anand Avatar asked Oct 29 '22 03:10

Anurag Anand


1 Answers

There is no audit functionality available by default in the opensource postgresql database. You can check out edb_audit from Enterprisedb postgres for creating audit logs.

Or check out the pgAudit extension for the opensource version.

like image 196
Lohit Gupta Avatar answered Nov 09 '22 10:11

Lohit Gupta