Re: audit table containing Select statements submitted

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Douglas McNaught <doug(at)mcnaught(dot)org>
Subject: Re: audit table containing Select statements submitted
Date: 2006-05-16 16:50:16
Message-ID: 200605160950.16850.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Doug,

> But what if the user calls the access function, sees the data, then
> issues a ROLLBACK? The audit record would be rolled back as well (as
> Tom pointed out earlier).
>
> You could use dblink to log to a separate audit database, I suppose.

Or just write to some other non-transational resource, like a text file. That
would require the use of an external "untrusted" PL, though (like PL/PerlU,
PL/sh or PL/PythonU)

--
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rafael Martinez 2006-05-16 16:53:41 Re: Weird ..... (a=1 or a=2) <> (a=2 or a=1)
Previous Message Bruce Momjian 2006-05-16 16:38:44 Re: [PATCHES] .pgpass file and unix domain sockets