Re: Trigger on select :-(

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: Trigger on select :-(
Дата
Msg-id 3073cc9b1003112256u4e3bfbb6q30c90fbd05d0fac6@mail.gmail.com
обсуждение исходный текст
Ответ на Trigger on select :-(  ("Ray Madigan" <ray@madigans.org>)
Список pgsql-sql
On Mon, Mar 1, 2010 at 9:10 PM, Ray Madigan <ray@madigans.org> wrote:
>
> What I want to do is when I do a SELECT on the Catalog and deliver the
> result to the user, I want to check to see if the FooKey is in the users
> ToDo table and set the value of a column isToDo to true or false depending
> on if the FooKey exists in the ToDo table for the user.

you should do this when inserting data (with triggers of course)

you can't use rules because a RULE ON SELECT you only can use one
SELECT, no INSERT, UPDATE nor DELETE

--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157


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

Предыдущее
От: Tony Wasson
Дата:
Сообщение: Re: Remote monitoring of Postgres w/minimal grants
Следующее
От: Ireneusz Pluta
Дата:
Сообщение: Re: Clarification With Money data type