Re: Question regardding info available in customer C trigger function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question regardding info available in customer C trigger function
Дата
Msg-id 5695.988230461@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Question regardding info available in customer C trigger function  ("Curtis H. Wilbar Jr." <curtis@hawkmountain.net>)
Список pgsql-docs
"Curtis H. Wilbar Jr." <curtis@hawkmountain.net> writes:
> However, is there a way in my C function to determine the name of the
> table and of the database that caused the trigger.

The current database name is not passed around as a parameter, but you
can get it from the global variable DatabaseName.  As for the table
name, try RelationGetRelationName(triggerdata->tg_relation).

            regards, tom lane

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

Предыдущее
От: Vince Vielhaber
Дата:
Сообщение: Re: Translation
Следующее
От: Mark Butler
Дата:
Сообщение: Re: Are there unsigned int types in the manual