Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 57084475A17 for ; Wed, 29 May 2002 12:37:33 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 75CEC4759FF for ; Wed, 29 May 2002 12:37:32 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g4TGb7W24122; Wed, 29 May 2002 12:37:07 -0400 (EDT) To: Wei Weng Cc: pgsql-sql@postgresql.org Subject: Re: Can you help with this JOIN? In-reply-to: <1022688374.26733.5.camel@Monet> References: <1022688374.26733.5.camel@Monet> Comments: In-reply-to Wei Weng message dated "29 May 2002 12:06:14 -0400" Date: Wed, 29 May 2002 12:37:06 -0400 Message-ID: <24119.1022690226@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200205/305 X-Sequence-Number: 7940 Wei Weng writes: > I have a massive join that takes something like 10 seconds to execute in > Postgresql 7.2. Can any of gurus here help me improve it? 1. Have you vacuum analyzed these tables lately? The row count estimates look suspiciously low. 2. Please provide EXPLAIN ANALYZE output not just EXPLAIN. regards, tom lane