Re: know the schema name in a trigger

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "danilo(dot)juvinao *EXTERN*" <danilo(dot)juvinao(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: know the schema name in a trigger
Date: 2008-01-16 15:39:52
Message-ID: D960CB61B694CF459DCFB4B0128514C2CC22C6@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

danilo.juvinao wrote:
> i want know how can i get the schema name that execute a trigger.
>
> for example, if a have a schema "myschema" and a table "mytable" and
> it have a trigger procedure, i want know inside the trigger procedure,
> with plpgsql, the shcema name "myschema"..

http://www.postgresql.org/docs/current/static/plpgsql-trigger.html

See TG_TABLE_SCHEMA.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2008-01-16 15:50:32 Re: Building 8.1.11 on FC4
Previous Message Gregory Williamson 2008-01-16 15:28:50 Re: Sun acquires MySQL