| From: | hubert depesz lubaczewski <depesz(at)depesz(dot)com> |
|---|---|
| To: | Josh Trutwin <josh(at)trutwins(dot)homeip(dot)net> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: ON UPDATE trigger question |
| Date: | 2007-09-13 08:05:33 |
| Message-ID: | 20070913080533.GA8894@depesz.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Wed, Sep 12, 2007 at 01:56:13PM -0500, Josh Trutwin wrote:
> Or would you have to compare each field in OLD, NEW to see if
> anything actually changed?
you dont have to compare all columns (at least not in 8.2 and newer).
please take a look at
http://www.depesz.com/index.php/2007/09/08/avoiding-empty-updates/
make sure you'll also read comment from david fetter.
depesz
--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA. here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | hubert depesz lubaczewski | 2007-09-13 08:09:16 | Re: get a list of table modifications in a day? |
| Previous Message | Ottavio Campana | 2007-09-13 07:59:30 | get a list of table modifications in a day? |