pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mischa Sandberg <ischamay.andbergsay@activestateway.com>
To: pgsql-sql@postgresql.org
Subject: Re: CREATE TRIGGER ... FOR EACH STATEMENT
Date: Fri, 05 Nov 2004 03:27:44 GMT
Message-ID: <QqCid.51505$VA5.25114@clgrps13> (raw)
In-Reply-To: <1Txid.94791$9b.89312@edtnps84>
References: <1Txid.94791$9b.89312@edtnps84>

Please ignore this, I just caught up with news in c.d.p.hackers

Mischa Sandberg wrote:
> I notice a dearth of description of the FOR EACH STATEMENT flavour of 
> triggers, even though OLD_TABLE and NEW_TABLE are mentioned.
> 
> After years of Sybase & MSSQL, being able to deal with the entire
> INSERTED/DELETED rowsets in a trigger, rather than nibbling away
> row by row, has been a great efficiency boost. In fact, the only I've
> resorted to FOR EACH ROW triggers is where joining OLD_TABLE and
> NEW_TABLE by primary key burned the CPU --- both pseudo-tables being
> very large in some updates, and perforce having no indexes ...
> 
> I can see from  src/backend/command/trigger.c that 
> ExecASInsertTriggers() would have a hard time getting at the equivalent
> of OLD_TABLE and NEW_TABLE, ExecBSInsertTriggers even worse.
> 
> Anyone else out there who feels this would be a significant
> enhancement?



view thread (2+ messages)

Message-ID: <QqCid.51505$VA5.25114@clgrps13>
Permalink:  ../QqCid.51505$VA5.25114@clgrps13/
Also on:    postgresql.org/message-id/QqCid.51505$VA5.25114@clgrps13

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ischamay.andbergsay@activestateway.com
  Subject: Re: CREATE TRIGGER ... FOR EACH STATEMENT
  In-Reply-To: <QqCid.51505$VA5.25114@clgrps13>

* 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