Skip site navigation (1) Skip section navigation (2)

Re: Automatic auditing suggestion

From: Scott Chapman <scott_list(at)mischko(dot)com>
To: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Automatic auditing suggestion
Date: 2003-10-30 15:20:08
Message-ID: 200310300720.08273.scott_list@mischko.com (view raw or flat)
Thread:
Lists: pgsql-general
On Thursday 30 October 2003 06:38, scott.marlowe wrote:
> On Wed, 29 Oct 2003, Scott Chapman wrote:
> > In my further discussion with Andrew offline, we came up with a joint
> > suggestion to have PostgreSQL do automatic auditing.  This would be VERY
> > NICE, imho.  Any input?
> >
> > Scott wrote:
> > > It seems like it would be nice if you could flip a toggle on a
> > > table and have it automatically build audit entries in another table.
> >
> > Andrew replied:
> > > Yeah - that would be a great feature - automatic auditing...
> > > Maybe you should post that to someone (whoever it would be?) at
> > > PostgreSQL - sure, there would be major performance hit problems (maybe
> > > rather than at table level, field/column level would be better), but it
> > > would be a boon for many...
>
> I like the idea.  It would be kinda nice to do:
>
> create table test (name text, id serial primary key)
> with audit
> (id keyid, 10 cycle,fifo|stop);
>
> and have an auditing table with a historical view of the table up to 10
> deep per key, and either have it either fifo them so the ones older than
> 10 disappear or have it stop inserts into the parent when the history gets
> too deep.
>
> I'd guess the proof of concept could be done in plpgsql, with the with
> audit part programmed as a before trigger.

I wouldn't limit it to 10 layers deep.  That should be all user configurable.  
Some implementations would need full history audits, etc.  My skill with 
triggers and plpgsql is not up to this task currently, but this is a 
suggestion for the PostgreSQL developers.

Cordially,
Scott


In response to

Responses

pgsql-general by date

Next:From: Dave WeaverDate: 2003-10-30 15:21:03
Subject: Re: slow query performance
Previous:From: scott.marloweDate: 2003-10-30 15:06:59
Subject: Re: slow query performance

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group