X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C7A329FA3A6 for ; Tue, 6 Jun 2006 21:32:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 30650-10 for ; Tue, 6 Jun 2006 21:32:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id A79049FA0E5 for ; Tue, 6 Jun 2006 21:32:06 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 5C99B321A9; Wed, 7 Jun 2006 02:32:04 +0200 (MET DST) From: Ron Mayer X-Newsgroups: pgsql.hackers Subject: Re: More thoughts about planner's cost estimates Date: Tue, 06 Jun 2006 17:32:03 -0700 Organization: Hub.Org Networking Services Lines: 21 Message-ID: <44861E83.9070403@cheapcomplexdevices.com> References: <14821.1149104747@sss.pgh.pa.us> <11319.1149287800@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org To: Tom Lane User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) In-Reply-To: <11319.1149287800@sss.pgh.pa.us> To: pgsql-hackers@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/228 X-Sequence-Number: 84461 Tom Lane wrote: > > One objection to this is that after moving "off the gold standard" of > 1.0 = one page fetch, there is no longer any clear meaning to the > cost estimate units; you're faced with the fact that they're just an > arbitrary scale. I'm not sure that's such a bad thing, though. It seems to me the appropriate gold standard is Time, in microseconds or milliseconds. The default postgresql.conf can come with a set of hardcoded values that reasonably approximate some real-world system; and if that's documented in the file someone reading it can say "hey, my CPU's about the same but my disk subsystem is much faster, so I know in which direction to change things". And another person may say "ooh, now I know that my 4GHz machines should have about twice the number here as my 2GHz box". For people who *really* care a lot (HW vendors?), they could eventually make measurements on their systems.