X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2C4EF5E4716 for ; Tue, 31 Aug 2004 16:15:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 27732-02 for ; Tue, 31 Aug 2004 19:14:54 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id 555105E46FB for ; Tue, 31 Aug 2004 16:14:52 -0300 (ADT) Received: from [64.81.245.111] (account josh@agliodbs.com HELO temoku.sf.agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6237387; Tue, 31 Aug 2004 12:16:11 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Jean-Max Reymond Subject: Re: Optimizing a request Date: Tue, 31 Aug 2004 12:15:40 -0700 User-Agent: KMail/1.6.2 Cc: pgsql-performance@postgresql.org References: <4b09a0c0408311159fa91802@mail.gmail.com> In-Reply-To: <4b09a0c0408311159fa91802@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408311215.40812.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/477 X-Sequence-Number: 8113 Jean, > I have the following structure in my base 7.4.2 Upgrade to 7.4.5. The version you're using has several known issues with data restore in the event of system failure. > Hash Join (cost=8.27..265637.59 rows=25 width=130) > Hash Cond: ("outer".rub_id = "inner".rub_id) > -> Seq Scan on article (cost=0.00..215629.00 rows=10000000 width=108) > -> Hash (cost=8.26..8.26 rows=3 width=22) > -> Index Scan using rubrique_parent on rubrique > (cost=0.00..8.26 rows=3 width=22) > Index Cond: (rub_parent = 8) Those look suspiciously like stock estimates. When was the last time you ran ANALYZE? -- --Josh Josh Berkus Aglio Database Solutions San Francisco