Triggers and Schema's.

From: Steven Singer <ssinger(at)navtechinc(dot)com>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Triggers and Schema's.
Date: 2002-10-12 19:29:26
Message-ID: Pine.LNX.4.33.0210121925050.26039-100000@pcNavYkfAdm1.ykf.navtechinc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


I've been testing contrib/dbmirror with 7.3 and schema's and have come
across a problem.

SPI_getrelname(tg_relation) can be used by a trigger to get the name of
the table that the trigger was fired on. But that just gives the
tablename and not the schema that the table is in. If you have a schema
named "A" and a schema named "B" each with an employee table how can a
trigger determine if it was fired on A.employee or B.employee.

Thanks

--
Steven Singer ssinger(at)navtechinc(dot)com
Aircraft Performance Systems Phone: 519-747-1170 ext 282
Navtech Systems Support Inc. AFTN: CYYZXNSX SITA: YYZNSCR
Waterloo, Ontario ARINC: YKFNSCR

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Neophytos Demetriou 2002-10-12 19:29:37 7.3b2 ?bug? bitfromint4 is not working
Previous Message Bruce Momjian 2002-10-12 19:19:32 Re: oid2name and relfilenode