From: Jaime Casanova <jcasanov@systemguards.com.ec>
To: Ray Madigan <ray@madigans.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Trigger on select :-(
Date: Fri, 12 Mar 2010 01:56:24 -0500
Message-ID: <3073cc9b1003112256u4e3bfbb6q30c90fbd05d0fac6@mail.gmail.com> (raw)
In-Reply-To: <CMEFJOLLJJDJKKLGEJJMOELBDDAA.ray@madigans.org>
References: <CMEFJOLLJJDJKKLGEJJMOELBDDAA.ray@madigans.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jcasanov@systemguards.com.ec, ray@madigans.org
Subject: Re: Trigger on select :-(
In-Reply-To: <3073cc9b1003112256u4e3bfbb6q30c90fbd05d0fac6@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox