Re: problem with ON UPDATE rule

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Phil Dagosto <phildagosto(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: problem with ON UPDATE rule
Date: 2010-08-02 17:34:29
Message-ID: 20468.1280770469@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Phil Dagosto <phildagosto(at)gmail(dot)com> writes:
> I am trying to use event notifications controlled by an ON UPDATE
> rule.

Rules don't work the way you are hoping --- in particular, the NOTIFY
will fire whether or not any individual rows get inserted. You might
have better luck using a trigger instead.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2010-08-02 17:34:51 Re: solaris slow
Previous Message Phil Dagosto 2010-08-02 17:18:16 problem with ON UPDATE rule