Re: pgaudit - an auditing extension for PostgreSQL

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: MauMau <maumau307(at)gmail(dot)com>
Cc: Abhijit Menon-Sen <ams(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Stephen Frost <sfrost(at)snowman(dot)net>, Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <bruce(at)momjian(dot)us>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Ian Barwick <ian(at)2ndquadrant(dot)com>
Subject: Re: pgaudit - an auditing extension for PostgreSQL
Date: 2014-10-16 22:44:20
Message-ID: CA+U5nMJM4n5_9nY6SQwozO0vvJjkP9QVk6rmRCypJsTwHPqk0g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thanks for the review.

On 16 October 2014 23:23, MauMau <maumau307(at)gmail(dot)com> wrote:

> (3)
> SELECT against a view generated two audit log lines, one for the view
> itself, and the other for the underlying table. Is this intended? I'm not
> saying that's wrong but just asking.

Intended

> (4)
> I'm afraid audit-logging DML statements on temporary tables will annoy
> users, because temporary tables are not interesting.

Agreed

> (5)
> This is related to (4). As somebody mentioned, I think the ability to
> select target objects of audit logging is definitely necessary. Without
> that, huge amount of audit logs would be generated for uninteresting
> objects. That would also impact performance.

Discussed and agreed already

> (6)
> What's the performance impact of audit logging? I bet many users will ask
> "about what percentage would the throughtput decrease by?" I'd like to know
> the concrete example, say, pgbench and DBT-2.

Don't know, but its not hugely relevant. If you need it, you need it.

> (8)
> The code looks good. However, I'm worried about the maintenance. How can
> developers notice that pgaudit.c needs modification when they add a new SQL
> statement? What keyword can they use to grep the source code to find
> pgaudit.c?

Suggestions welcome.

--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2014-10-16 22:53:57 Re: WIP: dynahash replacement for buffer table
Previous Message MauMau 2014-10-16 22:23:04 Re: pgaudit - an auditing extension for PostgreSQL