X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 50DDDD9DA1 for ; Wed, 2 Nov 2005 19:50:10 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 24017-06 for ; Wed, 2 Nov 2005 23:50:07 +0000 (GMT) Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by svr1.postgresql.org (Postfix) with ESMTP id DBDA4D9DE4 for ; Wed, 2 Nov 2005 19:50:08 -0400 (AST) Received: by flake.decibel.org (Postfix, from userid 1001) id 36F721525E; Wed, 2 Nov 2005 17:50:12 -0600 (CST) Date: Wed, 2 Nov 2005 17:50:12 -0600 From: "Jim C. Nasby" To: Ralph Mason Cc: pgsql-performance@postgresql.org Subject: Re: Trigger Rowsets Message-ID: <20051102235012.GB55520@pervasive.com> References: <43694CF6.4050605@telogis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43694CF6.4050605@telogis.com> X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.008 required=5 tests=[AWL=0.008] X-Spam-Score: 0.008 X-Spam-Level: X-Archive-Number: 200511/37 X-Sequence-Number: 15294 On Thu, Nov 03, 2005 at 12:34:14PM +1300, Ralph Mason wrote: > I want to do statement level triggers for performance, but it seems > there is no 'updated', 'inserted', or 'deleted' tables inside the > trigger and nothing I can find in the documentation that offers similar > functionality. > > Is there any way that I can access only those rows that were changed? No. The only way you can do this is with row-level triggers. There's also not currently any plans to allow statement-level triggers to interact with the data that was modified by the statement. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461