Re: Triggers on TRUNCATE? - Mailing list pgsql-hackers

From Rod Taylor
Subject Re: Triggers on TRUNCATE?
Date
Msg-id 1090900226.83536.82.camel@jester
Whole thread Raw
In response to Re: Triggers on TRUNCATE?  (Daniel Baldoni <pgsql@lcds.com.au>)
List pgsql-hackers
> How do you then audit a TRUNCATE performed by somebody else (who, for
> "political" reasons, has superuser access)?  Such actions aren't limited to
> attacks - but may simply be the result of "I thought it was a good idea at
> the time".  :-(

Easily enough, have the logs record the pid, connection startup,
timestamps, statement,etc. That should give everything required to track
down a unique user who performed random actions.



pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: cvsweb upgraded
Next
From: "Marc G. Fournier"
Date:
Subject: Re: cvsweb upgraded