Re: logging table changes - Mailing list pgsql-novice

From Mladen Gogala
Subject Re: logging table changes
Date
Msg-id 4C891E82.7040204@vmsinfo.com
Whole thread Raw
In response to Re: logging table changes  ("Rob Richardson" <Rob.Richardson@rad-con.com>)
List pgsql-novice
Rob Richardson wrote:
>
> But how is that significantly better than an update trigger that
> includes:
>
> If old.value <> new.value then
>     do something
> End if
>
> RobR
>
>
It's better because the new version will not fire unless the "WHEN"
condition is satisfied, which means that you will save a few trigger
invocations, which should improve the performance. The present method
would fire every time, and check for the values.

--

Mladen Gogala
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251
http://www.vmsinfo.com
The Leader in Integrated Media Intelligence Solutions




pgsql-novice by date:

Previous
From: "Rob Richardson"
Date:
Subject: Re: logging table changes
Next
From: "Rob Richardson"
Date:
Subject: Re: logging table changes