Re: pgaduit - is there a way to audit a role

From: David Steele <david(at)pgmasters(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: pgaduit - is there a way to audit a role
Date: 2017-10-31 22:31:40
Message-ID: d2181e95-fe61-24f3-f585-3e13e1014837@pgmasters.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/30/17 6:48 PM, rakeshkumar464 wrote:
> Is there a way to audit a group like as follows
>
> alter role db_rw set pgaudit.log = 'read,write,function,ddl'
>
> and then any user part of db_rw role can be audited automatically. It does
> not seem to work if I connect to the db as rakesh who is part of db_rw role.

This will not work because settings (GUCs) on a role are not inherited
by roles (or users) that are members of that role. This is a
characteristic of the roles system and not inherent to pgAudit.

--
-David
david(at)pgmasters(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Froehlich 2017-11-01 01:39:47 Re: PG 10 - Trouble with overlap of range partition of two dimensions
Previous Message Michael Paquier 2017-10-31 22:05:31 Re: PG 10 - Trouble with overlap of range partition of two dimensions