Audit based on role

From: anand086 <anand086(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Audit based on role
Date: 2017-08-07 23:33:21
Message-ID: 1502148801920-5976507.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I am postgres newbie.

We are running Postgres 9.6.3 version and have requirement, where we want to
audit any DML action performed by a user whose has module_dml role granted.

What would be the best way to do that? I was thinking to write something
like https://wiki.postgresql.org/wiki/Audit_trigger, but I am not sure on
how to integrate "user whose has module_dml role granted" into the function.

Instead of trigger is there any better way to achieve this?

Regards,
Anand

--
View this message in context: http://www.postgresql-archive.org/Audit-based-on-role-tp5976507.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Venkat Ramkrishna 2017-08-07 23:37:17 Ora2pg estimation accuracy
Previous Message Joshua D. Drake 2017-08-07 19:14:52 Re: Redacting JSONB