Re: Rules with sequence columns

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ray Madigan <ray(at)madigans(dot)org>
Cc: Pgsql-Sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Rules with sequence columns
Date: 2007-03-28 16:17:05
Message-ID: 26419.1175098625@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Ray Madigan <ray(at)madigans(dot)org> writes:
> Does anyone have any suggestion?

Use a trigger to propagate the data to the other table. You can't make
this work reliably with a rule, because rules are macros and hence
inherently subject to double-evaluation problems when dealing with
volatile functions.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Andreas Kretschmer 2007-03-28 16:19:06 Re: union with count?
Previous Message Gerardo Herzig 2007-03-28 15:23:17 Re: union with count?