Re: Accessing insert values in triggers

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Accessing insert values in triggers
Дата
Msg-id 20050203080142.GA47411@winnie.fuhr.org
обсуждение исходный текст
Ответ на Accessing insert values in triggers  (Hasnul Fadhly bin Hasan <hasnulfadhly.h@mimos.my>)
Список pgsql-performance
On Wed, Feb 02, 2005 at 06:02:28PM +0800, Hasnul Fadhly bin Hasan wrote:

> When new data is inserted, we have to use new.xxxx to access the data.
> Is there another way to access the data that would be more generic
> like value[1] and so on?  This way, the tracker is independant of any
> tables.

Procedural languages like PL/Perl, PL/Tcl, and PL/Python can access
NEW and OLD columns without knowing the column names in advance.

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

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

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: horizontal partition
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: GiST indexes and concurrency (tsearch2)