Re: PG 7.1: VIEW returns fewer rows than equivalent select

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bradley Kieser <brad(at)kieser(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: PG 7.1: VIEW returns fewer rows than equivalent select
Date: 2002-07-22 15:35:42
Message-ID: 28516.1027352142@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Bradley Kieser <brad(at)kieser(dot)net> writes:
> When I run it, it returns 36 rows.

> Now, if I cut and paste simply the SELECT part and run it, I get the
> correct number of rows, 170.

If you can reproduce this on something more recent than 7.1, I'd
appreciate seeing a complete (self-contained) example. I recall having
seen some problems like this with INTERSECT/EXCEPT queries, but not
with plain inner joins ...

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Daniel Alvarez 2002-07-22 16:10:39 pg_ctl -w option does not behave as documented
Previous Message Pankaj Naug 2002-07-22 12:06:24 help