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 BCEC3D1B4A9 for ; Mon, 7 Jun 2004 19:55:29 -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 86925-03 for ; Mon, 7 Jun 2004 22:55:24 +0000 (GMT) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by svr1.postgresql.org (Postfix) with ESMTP id 70585D1B434 for ; Mon, 7 Jun 2004 19:55:21 -0300 (ADT) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 72B703D34; Mon, 7 Jun 2004 18:55:24 -0400 (EDT) From: "Dan Langille" To: Rod Taylor Date: Mon, 07 Jun 2004 18:55:24 -0400 MIME-Version: 1.0 Subject: Re: seq scan woes Cc: Postgresql Performance Message-ID: <40C4BA1C.26370.498870C7@localhost> In-reply-to: <40C4B8CA.5077.4983460F@localhost> References: <1086640698.86807.61.camel@jester> X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body 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: 200406/78 X-Sequence-Number: 7136 On 7 Jun 2004 at 18:49, Dan Langille wrote: > On 7 Jun 2004 at 16:38, Rod Taylor wrote: > > * random_page_cost (good disks will bring this down to a 2 from a > > 4) > > I've got mine set at 4. Increasing it to 6 gave me a 1971ms query. > At 3, it was a 995ms. Setting it to 2 gave me a 153ms query. > > How interesting. The explain analyse: http://rafb.net/paste/results/pWhHsL86.html -- Dan Langille : http://www.langille.org/ BSDCan - http://www.bsdcan.org/