From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ben Morrow <ben@morrow.me.uk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Rules and sequences
Date: Wed, 26 May 2010 20:04:34 -0400
Message-ID: <4884.1274918674@sss.pgh.pa.us> (raw)
In-Reply-To: <20100526181620.GA54996@osiris.mauzo.dyndns.org>
References: <20100526181620.GA54996@osiris.mauzo.dyndns.org>
Ben Morrow <ben@morrow.me.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.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, ben@morrow.me.uk
Subject: Re: Rules and sequences
In-Reply-To: <4884.1274918674@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox