| От | JanWieck@t-online.de (Jan Wieck) |
|---|---|
| Тема | Re: General Trigger Functions |
| Дата | |
| Msg-id | 200007252054.WAA21428@hot.jw.home обсуждение исходный текст |
| Ответ на | General Trigger Functions (mjp@ornl.gov) |
| Список | pgsql-general |
mjp@ornl.gov wrote:
> Hi,
>
> Is there a way to write a "generic" trigger function in postgres
> that can loop thru a table's cloumns (using TG_RELNAME)
> and perform certain activities based on, say, certain column-types?
> In other words, is it possible to assign OLD.<column_name>
> and NEW.<column_name> to a variable inside triggers?
PL/pgSQL has the pseudo type RECORD. And at least it'd be
possible with PL/Tcl.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера