X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 77DD7D1D4F2 for ; Thu, 22 Jan 2004 17:17:49 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 23673-01 for ; Thu, 22 Jan 2004 13:17:18 -0400 (AST) Received: from mail.unisoftbg.com (mail.unisoftbg.com [194.12.229.207]) by svr1.postgresql.org (Postfix) with ESMTP id B3E06D1B4AD for ; Thu, 22 Jan 2004 13:17:14 -0400 (AST) Received: (qmail 378 invoked by uid 507); 22 Jan 2004 18:22:06 -0000 Received: from unknown (HELO t1.unisoftbg.com) (pginfo%t1.unisoftbg.com@194.12.229.193) by 0 with SMTP; 22 Jan 2004 18:22:06 -0000 Message-ID: <400FF4CF.EF44E795@t1.unisoftbg.com> Date: Thu, 22 Jan 2004 17:05:35 +0100 From: pginfo X-Mailer: Mozilla 4.03 [en] (Win95; I) MIME-Version: 1.0 To: Tom Lane Cc: "pgsql-performance@postgresql.org" Subject: Re: Trigger performance References: <400F9955.3C0FD784@t1.unisoftbg.com> <12241.1074785874@sss.pgh.pa.us> <400FECD6.B835AF9C@t1.unisoftbg.com> <12833.1074791456@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/220 X-Sequence-Number: 5394 Ok, thanks. I will do it. regards, ivan. Tom Lane wrote: > pginfo writes: > > In wich case will this trigger work faster if write it in "C"? > > Given that the dominant part of the time will be spent down inside SPI > in either case, I doubt you will be able to see much difference. You > need to think about how to optimize the invoked query, not waste your > time recoding the wrapper around it. > > regards, tom lane