Re: Problem with sequence et rule

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: olly(at)lfix(dot)co(dot)uk
Cc: Marc Boucher <pgml(at)gmx(dot)net>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Problem with sequence et rule
Date: 2004-08-01 01:28:29
Message-ID: 9632.1091323709@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Oliver Elphick <olly(at)lfix(dot)co(dot)uk> writes:
> On Sat, 2004-07-31 at 23:57, Marc Boucher wrote:
>> Now my questions are:
>> - Is this an expected behavior ?

> I couldn't answer that.

It is. Rules are essentially macros and so you have all the usual
potential gotchas with multiple evaluations of their input arguments.

The recommended way to handle this type of problem is with a trigger
rather than a rule.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Marc Boucher 2004-08-01 22:31:05 Re: Problem with sequence et rule
Previous Message Oliver Elphick 2004-08-01 01:09:08 Re: Problem with sequence et rule