From: | Oisin Glynn <me(at)oisinglynn(dot)com> |
---|---|
To: | Oisin Glynn <me(at)oisinglynn(dot)com> |
Cc: | postgreSQL postgreSQL <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: NOTIFY QUESTION |
Date: | 2007-01-16 15:12:46 |
Message-ID: | 45ACEB6E.6000809@oisinglynn.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Oisin Glynn wrote:
>> From the Docs see below it implies that the WHERE clause of the update
> is ignored.(
> http://www.postgresql.org/docs/8.1/static/sql-createrule.html )
> If I create a Rule as
>
> CREATE RULE foo_update_false AS ON UPDATE TO foo
> WHERE NEW.some_flag = TRUE
> DO NOTIFY foo_update;
>
>
> Does the WHERE clause in the rule get ignored as well? If so Could I
> create a regular trigger and do the notification from within the
> trigger having put a check in the trigger?
>
> Thanks,
>
> Oisin
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
This had to be done with a trigger.
Oisin
From | Date | Subject | |
---|---|---|---|
Next Message | Darcy Buskermolen | 2007-01-16 15:16:43 | Re: [HACKERS] Autovacuum Improvements |
Previous Message | richard lavoie | 2007-01-16 15:02:41 | Elegant copy of a row using PL |