Re: [HACKERS] Bug on complex join

From: Oleg Broytmann <phd(at)sun(dot)med(dot)ru>
To: Vadim Mikheev <vadim(at)krs(dot)ru>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Bug on complex join
Date: 1999-03-09 09:33:08
Message-ID: Pine.SOL2.3.96.SK.990309123135.18124C-100000@sun.med.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, 6 Mar 1999, Vadim Mikheev wrote:

> Oleg Broytmann wrote:
> >
> > Hi!
> >
> > I am continuing playing with the query (I reduced it to):
> > SELECT sh.distr_id , d.distr_id
> > FROM central cn, shops sh, districts d
> > WHERE cn.shop_id = sh.shop_id
> >
> > and got 27963 rows. I filtered it out (with awk:) where $1 == $2 (1st
> > column is equal to second) and got 3104 rows.
> >
> > But the query
> > SELECT d.*
> > FROM central cn, shops sh, districts d
> > WHERE cn.shop_id = sh.shop_id AND sh.distr_id = d.distr_id
> >
> > returned 0 rows.
> >
> > Where is the bug?
>
> Please post me EXPLAIN VERBOSE for second query.

EXPLAIN VERBOSE SELECT d.*
FROM central cn, shops sh, districts d
WHERE cn.shop_id = sh.shop_id AND sh.distr_id = d.distr_id
;
pqReadData() -- backend closed the channel unexpectedly.
This probably means the backend terminated abnormally before or while processing the request.
We have lost the connection to the backend, so further processing is impossible. Terminating.

:(((

> Vadim
>

Oleg.
----
Oleg Broytmann http://members.xoom.com/phd2/ phd2(at)earthling(dot)net
Programmers don't die, they just GOSUB without RETURN.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Broytmann 1999-03-09 09:40:09 Re: [HACKERS] Bug on complex join
Previous Message Jan Wieck 1999-03-09 09:23:44 Re: [HACKERS] Developers globe