Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E98AD633037 for ; Mon, 31 May 2010 15:48:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 38186-03 for ; Mon, 31 May 2010 18:48:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from shrek.krogh.cc (2605ds1-ynoe.0.fullrate.dk [90.184.12.24]) by mail.postgresql.org (Postfix) with ESMTP id 37BA36328CC for ; Mon, 31 May 2010 15:48:51 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by shrek.krogh.cc (Postfix) with ESMTP id 0618A3286B7; Mon, 31 May 2010 20:48:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at shrek.krogh.cc Received: from shrek.krogh.cc ([127.0.0.1]) by localhost (shrek.krogh.cc [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fDfCwNAUOoTM; Mon, 31 May 2010 20:48:40 +0200 (CEST) Received: from [90.184.13.151] (2605ds1-ynoe.2.fullrate.dk [90.184.13.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jesper@krogh.cc) by shrek.krogh.cc (Postfix) with ESMTPSA id BB6F0328703; Mon, 31 May 2010 20:48:40 +0200 (CEST) Message-ID: <4C040488.30906@krogh.cc> Date: Mon, 31 May 2010 20:48:40 +0200 From: Jesper Krogh User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: Tom Lane CC: pgsql-performance@postgresql.org Subject: Re: planner costs in "warm cache" tests References: <4C02A342.40801@krogh.cc> <14644.1275244491@sss.pgh.pa.us> In-Reply-To: <14644.1275244491@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001 X-Spam-Level: X-Archive-Number: 201005/271 X-Sequence-Number: 38855 On 2010-05-30 20:34, Tom Lane wrote: > Jesper Krogh writes: > >> testdb=# set seq_page_cost = 0.00001; >> SET >> testdb=# set random_page_cost = 0.00001; >> SET >> > Well, hmm, I really doubt that that represents reality either. A page > access is by no means "free" even when the page is already in cache. > I don't recall anyone suggesting that you set these numbers to less > than perhaps 0.01. > > Thank you for the prompt response. Is it a "false assumption" that the cost should in some metric between different plans be a measurement of actual run-time in a dead-disk run? It should most likely be matching a typical workload situation, but that it really hard to tell anything about, so my "feeling" would be that the dead disk case is the one closest? -- Jesper