Re: regress test db

From: Masaru Sugawara <rk73(at)echna(dot)ne(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: regress test db
Date: 2001-11-17 06:31:32
Message-ID: 20011117111553.36EB.RK73@echna.ne.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 13 Nov 2001 21:27:12 -0500 (EST)
Vince Vielhaber <vev(at)michvhf(dot)com> wrote:

> AFAIK the regress test database is working again. If anyone's having
> a problem with it let me know.

Hi, Vince


Not a problem, but...

I pondered whether the several examples, which is used nested
EXCEPT/INTERSECT/UNION among three SELECTs at the "Operator precedence
and (((((extra))))) parentheses" in the ../regress/sql/union.sql,
have the case like a query returning an incorrect result in v7.1.*
(e.g. See below) or not. Finally, the reconfirmation may lead me to
conclude that the examples can't reflect the behavior of the fixed
nested EXCEPT/INTERSECT(Thanks Tom). I wish there was something new
to be able to demonstrate the fixed.

SELECT q1 FROM int8_tbl
INTERSECT ALL
SELECT q2 FROM int8_tbl
INTERSECT
SELECT q2 FROM int8_tbl;

q1
-----
123 <--NG
(1 row)

SELECT q1 FROM int8_tbl
INTERSECT
SELECT q2 FROM int8_tbl
INTERSECT
SELECT q2 FROM int8_tbl;

q1
-----
123 <--NG
(1 row)

SELECT q1 FROM int8_tbl
INTERSECT ALL
SELECT q2 FROM int8_tbl
EXCEPT
SELECT q2 FROM int8_tbl WHERE q2 < 1000;

q1
----
(0 rows) <--NG

SELECT q1 FROM int8_tbl
INTERSECT
SELECT q2 FROM int8_tbl
EXCEPT ALL
SELECT q2 FROM int8_tbl WHERE q2 < 1000;

q1
----
(0 rows) <--NG

TIA,
Masaru Sugawara

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message mlw 2001-11-17 14:24:58 Re: Super Optimizing Postgres
Previous Message Tom Lane 2001-11-17 05:14:34 Re: Super Optimizing Postgres