incorrect query result using complex structures (views?) - Mailing list pgsql-hackers

From Kovacs Zoltan
Subject incorrect query result using complex structures (views?)
Date
Msg-id Pine.LNX.4.21.0105071835060.11748-300000@pc10.radnoti-szeged.sulinet.hu
Whole thread Raw
Responses Re: incorrect query result using complex structures (views?)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

I cannot decide if this is a serious bug or not --- some queries from
complex views may give strange results. The next few days I will try to
find the point where the problem is but now I can only include the data
structure and the SELECT statements which don't give the correct result. A
lot of rows (contained by the database) should be downloaded from

http://www.math.u-szeged.hu/~kovzol/rows.pgsql.gz (25K, uncompressed 305K)

if you want to check this error.

Here are the definitions (rels-views.pgsql) and a RUNME.pgsql file (which
must be loaded with \i in psql), it contains the SELECTs.

I tried it with 7.1beta4 and 7.1.

There ARE workarounds. I am using SQL functions instead of subSELECTs now.

Regards,
Zoltan

pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Isn't pg_statistic a security hole?
Next
From: teg@redhat.com (Trond Eivind Glomsrød)
Date:
Subject: Re: File system performance and pg_xlog