Re: fail-safe sql update triggers - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: fail-safe sql update triggers
Date
Msg-id 4C80DAAB02000025000351AA@gw.wicourts.gov
Whole thread Raw
In response to fail-safe sql update triggers  (Michael Monnerie<michael.monnerie@is.it-management.at>)
Responses Re: fail-safe sql update triggers  (Michael Monnerie <michael.monnerie@is.it-management.at>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Michael Monnerie
Date:
Subject: fail-safe sql update triggers
Next
From: "Rob Richardson"
Date:
Subject: Re: fail-safe sql update triggers