pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
finding schema of table that called a trigger
2+ messages / 2 participants
[nested] [flat]

* finding schema of table that called a trigger
@ 2005-03-13 21:32  Jeff Hoffmann <jeff@propertykey.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Jeff Hoffmann @ 2005-03-13 21:32 UTC (permalink / raw)
  To: pgsql-sql

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: finding schema of table that called a trigger
@ 2005-03-14 08:20  Richard Huxton <dev@archonet.com>
  parent: Jeff Hoffmann <jeff@propertykey.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Richard Huxton @ 2005-03-14 08:20 UTC (permalink / raw)
  To: Jeff Hoffmann <jeff@propertykey.com>; +Cc: pgsql-sql

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-03-14 08:20 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-13 21:32 finding schema of table that called a trigger Jeff Hoffmann <jeff@propertykey.com>
2005-03-14 08:20 ` Richard Huxton <dev@archonet.com>

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