Re: Triggers in Postgres

Поиск
Список
Период
Сортировка
От Chris Mair
Тема Re: Triggers in Postgres
Дата
Msg-id 1154424039.4837.3.camel@dell.home.lan
обсуждение исходный текст
Ответ на Re: Triggers in Postgres  ("Jasbinder Bali" <jsbali@gmail.com>)
Ответы Re: Triggers in Postgres
Список pgsql-general
> http://www.postgresql.org/docs/8.1/interactive/triggers.html
>
> it says something like this:
>
> " It is not currently possible to write a trigger function in the
> plain SQL function language. "

The whole paragraph says.

"It is also possible to write a trigger function in C, although most
people find it easier to use one of the procedural languages. It is not
currently possible to write a trigger function in the plain SQL function
language."

That is: you can and you should write your trigger in a procedural
language. In particular - if you want to stay as closed as possible
to SQL you should use procedural SQL, which in PostgreSQL is called
PL/pgSQL:
http://www.postgresql.org/docs/8.1/interactive/plpgsql.html

Bye, Chris.



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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Error in PostgreSQL query with psycopg
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Triggers in Postgres