X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 71F063A5E04 for ; Thu, 27 Jan 2005 11:35:58 +0000 (GMT) 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 45915-03 for ; Thu, 27 Jan 2005 11:35:52 +0000 (GMT) Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by svr1.postgresql.org (Postfix) with ESMTP id 8879A3A5D9B for ; Thu, 27 Jan 2005 11:35:53 +0000 (GMT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-32.mail.demon.net with esmtp (Exim 4.42) id 1Cu7wF-000NRS-81; Thu, 27 Jan 2005 11:35:53 +0000 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id DF4C6159B7; Thu, 27 Jan 2005 11:35:48 +0000 (GMT) Message-ID: <41F8D214.9010707@archonet.com> Date: Thu, 27 Jan 2005 11:35:48 +0000 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Wilton Cc: pgsql-sql@postgresql.org Subject: Re: Complete instruction in a trigger References: <41F8DCBB.3040707@microwork.inf.br> In-Reply-To: <41F8DCBB.3040707@microwork.inf.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.069 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/280 X-Sequence-Number: 20068 Wilton wrote: > Hi... > > People, i wanna know how can i know inside of a function whar the > trigger called, i mean which instruction SQL it called. > > I do not wanna know if itīs a insert, update or delete (tp_op), i need > to know the complete instruction. > > For example, i need to know something like this: > > update phones set number = '9999-2222'; > > Do you know if maybe exists a tg_stantement? No, and the situation isn't quite as simple as that. Think about foreign-keys with a cascading update. What precisely are you trying to do? -- Richard Huxton Archonet Ltd