Re: Trigger on select :-( - Mailing list pgsql-sql

From Jaime Casanova
Subject Re: Trigger on select :-(
Date
Msg-id 3073cc9b1003112256u4e3bfbb6q30c90fbd05d0fac6@mail.gmail.com
Whole thread Raw
In response to Trigger on select :-(  ("Ray Madigan" <ray@madigans.org>)
List 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 by date:

Previous
From: Tony Wasson
Date:
Subject: Re: Remote monitoring of Postgres w/minimal grants
Next
From: Ireneusz Pluta
Date:
Subject: Re: Clarification With Money data type