pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgaduit - is there a way to audit a role
2+ messages / 2 participants
[nested] [flat]

* pgaduit - is there a way to audit a role
@ 2017-10-30 22:48 rakeshkumar464 <rakeshkumar464@outlook.com>
  2017-10-31 22:31 ` Re: pgaduit - is there a way to audit a role David Steele <david@pgmasters.net>
  0 siblings, 1 reply; 2+ messages in thread

From: rakeshkumar464 @ 2017-10-30 22:48 UTC (permalink / raw)
  To: pgsql-general

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.



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: pgaduit - is there a way to audit a role
  2017-10-30 22:48 pgaduit - is there a way to audit a role rakeshkumar464 <rakeshkumar464@outlook.com>
@ 2017-10-31 22:31 ` David Steele <david@pgmasters.net>
  0 siblings, 0 replies; 2+ messages in thread

From: David Steele @ 2017-10-31 22:31 UTC (permalink / raw)
  To: 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@pgmasters.net


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-10-31 22:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-10-30 22:48 pgaduit - is there a way to audit a role rakeshkumar464 <rakeshkumar464@outlook.com>
2017-10-31 22:31 ` David Steele <david@pgmasters.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox