Re: Bug with rules in 7.0.3?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tod McQuillin <devin(at)spamcop(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Bug with rules in 7.0.3?
Date: 2001-02-03 18:18:37
Message-ID: 2363.981224317@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Tod McQuillin <devin(at)spamcop(dot)net> writes:
> How the heck can one insert and update generate three rows?

Looks like a rule rewriter bug to me. It seems to be fixed in 7.1;
I get

regression=# SELECT * FROM orders;
order_id | menu_id | price
----------+---------+-------
1 | 2 | -1
(1 row)

which is the correct result given that rules are executed before the
original query. (Which is why you need a trigger for this...)

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2001-02-03 19:18:55 Re: Suggestion for psql: --file -
Previous Message Tod McQuillin 2001-02-03 17:09:41 Bug with rules in 7.0.3?