Re: Select Column Auditing/Logging - Mailing list pgsql-general

From Jeff Davis
Subject Re: Select Column Auditing/Logging
Date
Msg-id 1248298901.23273.16.camel@monkey-cat.sm.truviso.com
Whole thread Raw
In response to Select Column Auditing/Logging  (Jeremy Brown <jwbrown77@yahoo.com>)
Responses Re: Select Column Auditing/Logging
List pgsql-general
On Wed, 2009-07-22 at 12:04 -0700, Jeremy Brown wrote:
> It seems that PostgreSQL can audit INSERT, UPDATE, DELETE, and
> TRUNCATE through the use of triggers.  But SELECT triggers are
> unsupported (it does suggest perhaps using RULES).

One thing you can do is use a set-returning function that, as a side
effect, records what happened. It's not ideal because it hides a lot of
information from the optimizer, but if your table is small enough it
would work.

Regards,
    Jeff Davis


pgsql-general by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Select Column Auditing/Logging
Next
From: Robert James
Date:
Subject: Re: Documentation Improvement suggestions