| From: | Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec> |
|---|---|
| To: | Ray Madigan <ray(at)madigans(dot)org> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Trigger on select :-( |
| Date: | 2010-03-12 06:56:24 |
| Message-ID: | 3073cc9b1003112256u4e3bfbb6q30c90fbd05d0fac6@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
On Mon, Mar 1, 2010 at 9:10 PM, Ray Madigan <ray(at)madigans(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ireneusz Pluta | 2010-03-12 08:10:17 | Re: Clarification With Money data type |
| Previous Message | Tony Wasson | 2010-03-11 22:20:54 | Re: Remote monitoring of Postgres w/minimal grants |