From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Michael Monnerie <michael.monnerie@is.it-management.at>
Cc: pgsql-admin@postgresql.org
Subject: Re: fail-safe sql update triggers
Date: Fri, 03 Sep 2010 11:23:23 -0500
Message-ID: <4C80DAAB02000025000351AA@gw.wicourts.gov> (raw)
In-Reply-To: <vmime.4c80f217.42d2.c43fd4a13aa09607@zarafa14.zmi.at>
References: <vmime.4c80f217.42d2.c43fd4a13aa09607@zarafa14.zmi.at>
Michael Monnerie<michael.monnerie@is.it-management.at> wrote:
> But that is error prone, because when the "filter" table is
> changed to have a new column, the UPDATE statement would not
> contain it. Is there a fail-proof shortcut?
You might draw inspiration for a C-based solution from Andrew
Dunstan's "minimal update" code. A quick search turned up this, but
you might want to read the whole thread and look for possible later
versions of the code:
http://archives.postgresql.org/pgsql-hackers/2008-10/msg01111.php
-Kevin
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, michael.monnerie@is.it-management.at
Subject: Re: fail-safe sql update triggers
In-Reply-To: <4C80DAAB02000025000351AA@gw.wicourts.gov>
References: <vmime.4c80f217.42d2.c43fd4a13aa09607@zarafa14.zmi.at> <4C80DAAB02000025000351AA@gw.wicourts.gov>
* 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