From: | "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Rules and sequences |
Date: | 2010-05-27 06:20:54 |
Message-ID: | 20100527062052.GA6907@a-kretschmer.de |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
In response to Tom Lane :
> Ben Morrow <ben(at)morrow(dot)me(dot)uk> writes:
> > I am trying to implement a fairly standard 'audit table' setup, but
> > using rules instead of triggers (since it should be more efficient).
>
> Rules are sufficiently tricky that I would never, ever rely on them for
> auditing. Use a simple AFTER trigger instead.
There are a ready solution:
http://andreas.scherbaum.la/blog/archives/100-Log-Table-Changes-in-PostgreSQL-with-tablelog.html
Regards, Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431 2EB0 389D 1DC2 3172 0C99
From | Date | Subject | |
---|---|---|---|
Next Message | Harrie Rodenbach | 2010-05-27 08:23:03 | Do not understand "SETOF RECORD" - therefore can not use ODBC-link |
Previous Message | Tom Lane | 2010-05-27 00:04:34 | Re: Rules and sequences |