Re: A trigger that acts on a column with a given column name

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: A trigger that acts on a column with a given column name
Дата
Msg-id 20050707210303.GA28281@winnie.fuhr.org
обсуждение исходный текст
Ответ на A trigger that acts on a column with a given column name  (BigSmoke <bigsmoke@gmail.com>)
Ответы Re: A trigger that acts on a column with a given column name  (BigSmoke <bigsmoke@gmail.com>)
Список pgsql-general
On Thu, Jul 07, 2005 at 09:28:23PM +0200, BigSmoke wrote:
>
> In a trigger function, I'm trying to refer to a column given by an argument
> to the trigger function.

This comes up frequently -- search the archives for past discussion.
The usual answer is to write the function in a language like PL/Perl,
PL/Tcl, or PL/Python.  See the PL/Tcl documentation for an example:

http://www.postgresql.org/docs/8.0/static/pltcl-trigger.html

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

Предыдущее
От: "David Esposito"
Дата:
Сообщение: index bloat
Следующее
От: BigSmoke
Дата:
Сообщение: Re: A trigger that acts on a column with a given column name