From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tod McQuillin <devin@spamcop.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Bug with rules in 7.0.3?
Date: Sat, 03 Feb 2001 13:18:37 -0500
Message-ID: <2363.981224317@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.GSO.4.31.0102031104350.5691-100000@sysadmin>
References: <Pine.GSO.4.31.0102031104350.5691-100000@sysadmin>
Tod McQuillin <devin@spamcop.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, devin@spamcop.net
Subject: Re: Bug with rules in 7.0.3?
In-Reply-To: <2363.981224317@sss.pgh.pa.us>
References: <Pine.GSO.4.31.0102031104350.5691-100000@sysadmin> <2363.981224317@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox