Re: know the schema name in a trigger - Mailing list pgsql-general

From Albe Laurenz
Subject Re: know the schema name in a trigger
Date
Msg-id D960CB61B694CF459DCFB4B0128514C2CC22C6@exadv11.host.magwien.gv.at
Whole thread Raw
In response to know the schema name in a trigger  ("danilo.juvinao" <danilo.juvinao@gmail.com>)
List 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

pgsql-general by date:

Previous
From: "Gregory Williamson"
Date:
Subject: Re: Sun acquires MySQL
Next
From: Greg Smith
Date:
Subject: Re: Building 8.1.11 on FC4