X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A069ED1C510 for ; Mon, 11 Aug 2003 18:26:35 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 29802-07 for ; Mon, 11 Aug 2003 15:25:05 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 5CECCD1C4E7 for ; Mon, 11 Aug 2003 15:26:24 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h7BIP4Sa005168; Mon, 11 Aug 2003 14:25:04 -0400 (EDT) To: Stef Cc: pgsql-performance@postgresql.org Subject: Re: Analyze makes queries slow... In-reply-to: <20030811184736.7e191a86.svb@ucs.co.za> References: <20030811155841.483ffd93.svb@ucs.co.za> <2934.1060616625@sss.pgh.pa.us> <20030811184736.7e191a86.svb@ucs.co.za> Comments: In-reply-to Stef message dated "Mon, 11 Aug 2003 18:47:36 +0200" Date: Mon, 11 Aug 2003 14:25:03 -0400 Message-ID: <5167.1060626303@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/172 X-Sequence-Number: 2989 Stef writes: > => Could we see the results of "EXPLAIN ANALYZE", rather than just EXPLAIN, > => for the un-analyzed case? > Attached the output of this. Hmm... not immediately obvious where it's going wrong. Could you try this (after ANALYZE): set enable_mergejoin to off; explain analyze ... query ... If it finishes in a reasonable amount of time, send the explain output. regards, tom lane