[HACKERS] Elide null updates

2008-12-16 Thread James Mansion
I saw on a summary for 8.4 that there's a generic function for use as a before row trigger that will elide null updates (ie replacement with an identical row). I can see that this is great - but I was wondering if it should be more integrated and turned on in the db schema. Trivially, doing

Re: [HACKERS] Elide null updates

2008-12-16 Thread Andrew Dunstan
James Mansion wrote: I saw on a summary for 8.4 that there's a generic function for use as a before row trigger that will elide null updates (ie replacement with an identical row). I can see that this is great - but I was wondering if it should be more integrated and turned on in the db

Re: [HACKERS] Elide null updates

2008-12-16 Thread James Mansion
Andrew Dunstan wrote: I don't follow what you're saying. If an update is skipped by a trigger, nothing new is written to disk, and there should be nothing to vacuum from it. That's why this trigger can speed up certain update queries enormously. OK I'll try again. Suppose we do an update.

Re: [HACKERS] Elide null updates

2008-12-16 Thread Tom Lane
James Mansion ja...@mansionfamily.plus.com writes: I saw on a summary for 8.4 that there's a generic function for use as a before row trigger that will elide null updates (ie replacement with an identical row). I can see that this is great - but I was wondering if it should be more