Re: [GENERAL] Audit based on role - Mailing list pgsql-general

From John R Pierce
Subject Re: [GENERAL] Audit based on role
Date
Msg-id 66826988-02d5-23e2-7845-cbbf271dd956@hogranch.com
Whole thread Raw
In response to [GENERAL] Audit based on role  (anand086 <anand086@gmail.com>)
Responses Re: [GENERAL] Audit based on role  (anand086 <anand086@gmail.com>)
List pgsql-general
On 8/7/2017 4:33 PM, anand086 wrote:
> 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
> likehttps://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?

DML as in select/insert/update/delete ?  or did you mean DDL as in
CREATE/ALTER TABLE, etc ?


--
john r pierce, recycling bits in santa cruz



pgsql-general by date:

Previous
From: Venkat Ramkrishna
Date:
Subject: [GENERAL] Ora2pg estimation accuracy
Next
From: anand086
Date:
Subject: Re: [GENERAL] Audit based on role