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 7B3E8543EE for ; Sun, 13 Mar 2005 21:32:25 +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 37829-07 for ; Sun, 13 Mar 2005 21:32:20 +0000 (GMT) Received: from www.propertykey.com (unknown [64.122.63.226]) by svr1.postgresql.org (Postfix) with ESMTP id 621335671C for ; Sun, 13 Mar 2005 21:32:13 +0000 (GMT) Received: from [10.0.1.4] (go-to-jail.propertykey.com [10.0.1.4]) by www.propertykey.com (8.11.6/8.11.6) with ESMTP id j2DLWEB06412 for ; Sun, 13 Mar 2005 15:32:14 -0600 Message-ID: <4234B15F.7020406@propertykey.com> Date: Sun, 13 Mar 2005 15:32:15 -0600 From: Jeff Hoffmann User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: finding schema of table that called a trigger 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 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200503/172 X-Sequence-Number: 20651 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? -- Jeff Hoffmann jeff@propertykey.com