pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Jeff Hoffmann <jeff@propertykey.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: finding schema of table that called a trigger
Date: Mon, 14 Mar 2005 08:20:42 +0000
Message-ID: <4235495A.5020800@archonet.com> (raw)
In-Reply-To: <4234B15F.7020406@propertykey.com>
References: <4234B15F.7020406@propertykey.com>

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



view thread (2+ messages)

Message-ID: <4235495A.5020800@archonet.com>
Permalink:  ../4235495A.5020800@archonet.com/
Also on:    postgresql.org/message-id/4235495A.5020800@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, jeff@propertykey.com
  Subject: Re: finding schema of table that called a trigger
  In-Reply-To: <4235495A.5020800@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox