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 4E1E4563BA for ; Mon, 14 Mar 2005 08:21:02 +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 22279-10 for ; Mon, 14 Mar 2005 08:21:01 +0000 (GMT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id 19ACD5612C for ; Mon, 14 Mar 2005 08:20:59 +0000 (GMT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 4.42) id 1DAkoq-000Not-Dk; Mon, 14 Mar 2005 08:21:00 +0000 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 793FE164E9; Mon, 14 Mar 2005 08:20:38 +0000 (GMT) Message-ID: <4235495A.5020800@archonet.com> Date: Mon, 14 Mar 2005 08:20:42 +0000 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeff Hoffmann Cc: pgsql-sql@postgresql.org Subject: Re: finding schema of table that called a trigger References: <4234B15F.7020406@propertykey.com> In-Reply-To: <4234B15F.7020406@propertykey.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.062 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/189 X-Sequence-Number: 20668 Jeff Hoffmann wrote: > Is there a variable defined that has the schema of the table that called > the trigger (like TG_RELNAME = table name)? I didn't see anything in > the documentation. Is the only way to get that to look it up with > TG_RELID? I must admit I don't know of one. Hmm - it would obviously be simple enough to add to the interface, but I presume there is some overhead for each parameter you supply. -- Richard Huxton Archonet Ltd