Re: audit table containing Select statements submitted - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: audit table containing Select statements submitted
Date
Msg-id 200605160950.16850.josh@agliodbs.com
Whole thread Raw
In response to Re: audit table containing Select statements submitted  (Douglas McNaught <doug@mcnaught.org>)
Responses Re: audit table containing Select statements submitted
List 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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] .pgpass file and unix domain sockets
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Compression and on-disk sorting