Problem with complex query - Mailing list pgsql-hackers

From Oleg Broytmann
Subject Problem with complex query
Date
Msg-id Pine.SOL2.3.96.SK.990224155706.10537I-100000@sun.med.ru
Whole thread Raw
Responses Re: [HACKERS] Problem with complex query
Re: [HACKERS] Problem with complex query
List pgsql-hackers
Hello!

Query:

SELECT DISTINCT p.subsec_id  FROM central cn, shops sh, districts d, positions p     WHERE cn.shop_id = sh.shop_id AND
sh.distr_id= d.distr_id     AND   d.city_id = %d AND cn.pos_id = p.pos_id     AND   cn.date_i >= current_date - '7
days'::timespan

While running postgres slowly eats all swap space (30 Meg) and aborts:

pqReadData() -- backend closed the channel unexpectedly.       This probably means the backend terminated abnormally
beforeor
 
while processing the request.
  Is it I just have not enough memory or bug?

Oleg.
----    Oleg Broytmann     http://members.xoom.com/phd2/     phd2@earthling.net          Programmers don't die, they
justGOSUB without RETURN.
 



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] OUTER joins
Next
From: Brian P Millett
Date:
Subject: Re: [HACKERS] postmaster failure with 2-23 snapshot