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

From Tomasz Myrta
Subject Re: know the schema name in a trigger
Date
Msg-id fmb2pe$23td$1@news.hub.org
Whole thread Raw
List pgsql-general
danilo.juvinao napisal 2008-01-12 01:18:
> Hello,
>
> 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"..

Did you try function current_schema() ?

--
Regards,
Tomasz Myrta

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Postgresql 8.2.4 on linux-sparc problem
Next
From: "Marko Kreen"
Date:
Subject: Re: How to safely compare transaction id?