X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6D64CD1EB2E for ; Thu, 29 Apr 2004 19:10:14 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 07043-01 for ; Thu, 29 Apr 2004 19:09:51 -0300 (ADT) Received: from davinci.ethosmedia.com (server228.ethosmedia.com [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 5D9A8D1EB33 for ; Thu, 29 Apr 2004 19:09:48 -0300 (ADT) Received: from [64.81.245.111] (HELO 192.168.1.102) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 4976073; Thu, 29 Apr 2004 15:11:18 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Vitaly Belman , Manfred Koizar Subject: Re: Simply join in PostrgeSQL takes too long Date: Thu, 29 Apr 2004 15:10:08 -0700 User-Agent: KMail/1.5.4 Cc: Rod Taylor , Postgresql Performance References: <282909734.20040428002740@012.net.il> <147254626500.20040430000936@012.net.il> In-Reply-To: <147254626500.20040430000936@012.net.il> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200404291510.08757.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=RCVD_NUMERIC_HELO X-Spam-Level: X-Archive-Number: 200404/508 X-Sequence-Number: 6808 Vitaly, > I am in the middle of going through them all, till now disabling the > enable_mergejoin really helped. In that case, your random_page_cost is probably too low. Check the ratio of per-tuple times on index vs. seqscan seeks. -- -Josh Berkus Aglio Database Solutions San Francisco