Calling trigger function from a function

Поиск
Список
Период
Сортировка
От Keith Worthington
Тема Calling trigger function from a function
Дата
Msg-id 20050401165520.M23646@narrowpathinc.com
обсуждение исходный текст
Список pgsql-novice
Hi All,

I have a trigger function that is normally called when table2 is updated.  I
would like to reuse this code in a circumstance where I would like to call it
once after making updates to almost every row in table1.  I can't see adding
it as a trigger to table1 as the trigger function does a lot of work.  Short
of duplicating the code and creating the identical function with a different
return type can this be done?

Kind Regards,
Keith

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

Предыдущее
От: "Rob Anderson"
Дата:
Сообщение: Trying to group on date parts
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Trying to group on date parts