Re: [HACKERS] Bug on complex join

From: Hannu Krosing <hannu(at)trust(dot)ee>
To: phd2(at)earthling(dot)net
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Bug on complex join
Date: 1999-03-09 12:56:30
Message-ID: 36E51A7E.4963BBA2@trust.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oleg Broytmann wrote:
>
> Hello!
>
> Another symptom. The query
>
> SELECT cn.date_i, cn.pos_id
> FROM central cn
> WHERE cn.date_i >= current_date - '300 days'::timespan
>
> returns 3156 rows. But this:
>
> SELECT cn.date_i, p.subsec_id, cn.pos_id, p.pos_id
> FROM central cn, shops sh, districts d, positions p
> WHERE cn.date_i >= current_date - '300 days'::timespan

this should return
3156 * count(shops) * count(districts) * count(positions)

which is probably too much for the backend ;(

-----------------------
Hannu

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1999-03-09 13:32:58 Re: [HACKERS] Developers globe
Previous Message Vince Vielhaber 1999-03-09 11:58:37 Re: [HACKERS] Developers globe