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 B5131D1B54A for ; Wed, 1 Oct 2003 17:10:46 +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 81044-05 for ; Wed, 1 Oct 2003 14:10:00 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 8BE64D1B51A for ; Wed, 1 Oct 2003 14:09:59 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3703584; Wed, 01 Oct 2003 10:10:22 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: Oleg Lebedev , "pgsql-performance@postgresql.org" Subject: Re: TPC-R benchmarks Date: Wed, 1 Oct 2003 10:08:50 -0700 User-Agent: KMail/1.4.3 References: <993DBE5B4D02194382EC8DF8554A52731D7604@postoffice.waterford.org> In-Reply-To: <993DBE5B4D02194382EC8DF8554A52731D7604@postoffice.waterford.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200310011008.50491.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/22 X-Sequence-Number: 3770 Oleg, > I continue struggling with the TPC-R benchmarks and wonder if anyone > could help me optimize the query below. ANALYZE statistics indicate that > the query should run relatively fast, but it takes hours to complete. I > attached the query plan to this posting. Even though it takes hours to complete, I think we need you to run EXPLAIN ANALYZE instead of just EXPLAIN. Without the real-time statistics, we simply can't see what's slowing the query down. -- Josh Berkus Aglio Database Solutions San Francisco