Re: Triggers on TRUNCATE?

From: Rod Taylor <pg(at)rbt(dot)ca>
To: Daniel Baldoni <pgsql(at)lcds(dot)com(dot)au>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Triggers on TRUNCATE?
Date: 2004-07-27 03:50:26
Message-ID: 1090900226.83536.82.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2004-07-27 04:13:00 Re: cvsweb upgraded
Previous Message Marc G. Fournier 2004-07-27 03:42:51 Re: cvsweb upgraded