Re: Audit based on role

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Audit based on role
Date: 2017-08-07 23:41:42
Message-ID: 66826988-02d5-23e2-7845-cbbf271dd956@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message anand086 2017-08-07 23:47:46 Re: Audit based on role
Previous Message Venkat Ramkrishna 2017-08-07 23:37:17 Ora2pg estimation accuracy