Received: from pop2.greatbasin.net (pop2.greatbasin.net [207.228.35.4]) by postgresql.org (Postfix) with ESMTP id 93B3547511A for ; Wed, 17 Apr 2002 20:34:03 -0400 (EDT) Received: from wellsgaming.com (rno-dsl0b-131.gbis.net [216.82.145.131]) by pop2.greatbasin.net (8.12.1/8.12.1) with ESMTP id g3I0Y3Mg002855; Wed, 17 Apr 2002 17:34:04 -0700 Message-ID: <3CBE14D0.4030205@wellsgaming.com> Date: Wed, 17 Apr 2002 17:35:28 -0700 From: Jeremy Buchmann User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:0.9.9) Gecko/20020310 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeff Madison Cc: pgsql-admin@postgresql.org Subject: Re: Large Join Dies References: <02da01c1e66e$45aa3c20$58c2d0cd@JEFF> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200204/167 X-Sequence-Number: 4055 Jeff Madison wrote: > Running Postgres 7.1.4 from RedHad RPM on RedHat 7.2. When ever we run > a query where we are joining more than 3 tables the query never returns. > Any ideas? > > Jeff Jeff, It would help to know things like: * What the exact query is (and an EXPLAIN of the query) * How big the tables are (and the general schema) * What kind of hardware you're running on Off the top of my head, I would say check your table1.key = table2.key join constraints. More than three tables leads to a lot of constraints and if you miss just one, you'll get a big cartesian product that will make the query seemingly go on forever even if your tables are of moderate size. --Jeremy