Re: How to determine table schema in trigger function

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: How to determine table schema in trigger function
Дата
Msg-id 20050818144306.GA97852@winnie.fuhr.org
обсуждение исходный текст
Ответ на How to determine table schema in trigger function  ("Andrus" <eetasoft@online.ee>)
Список pgsql-general
On Thu, Aug 18, 2005 at 05:02:58PM +0300, Andrus wrote:
> How to determine schema name where table TG_RELNAME belongs in trigger
> function ?

You could use TG_RELID to query the system catalogs.  See the
documentation for pg_class and pg_namespace.

--
Michael Fuhr

В списке pgsql-general по дате отправления:

Предыдущее
От: Edmund
Дата:
Сообщение: Re: Generating random values.
Следующее
От: Zbigniew Zagórski
Дата:
Сообщение: Postmaster fails in select() in strange way