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 C455B9FA30C for ; Fri, 2 Jun 2006 20:06:30 -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 33643-07 for ; Fri, 2 Jun 2006 20:06:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from keymaster.look.ca (delta1.look.ca [207.136.80.9]) by postgresql.org (Postfix) with ESMTP id 2B6DC9FA2C7 for ; Fri, 2 Jun 2006 20:06:22 -0300 (ADT) Received: from 216-154-16-41.dsl.look.ca ([216.154.16.41]) by keymaster.look.ca with esmtp (Exim 4.20) id 1FmIiM-0004hU-6b; Fri, 02 Jun 2006 23:05:58 +0000 From: Rod Taylor To: Tom Lane Cc: pgsql-hackers@postgresql.org In-Reply-To: <11319.1149287800@sss.pgh.pa.us> References: <14821.1149104747@sss.pgh.pa.us> <11319.1149287800@sss.pgh.pa.us> Date: Fri, 02 Jun 2006 19:05:15 -0400 Message-Id: <1149289515.6071.211.camel@home> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port X-SA-Exim-Mail-From: pg@rbt.ca Subject: Re: More thoughts about planner's cost estimates Content-Type: text/plain Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 3.1 (built Tue Feb 24 05:09:27 GMT 2004) X-SA-Exim-Scanned: Yes X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/97 X-Sequence-Number: 84330 > 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. For > instance, some people might want to try to tune their settings so that > the estimates are actually comparable to milliseconds of real time. Any chance that the correspondence to time could be made a part of the design on purpose and generally advise people to follow that rule? If we could tell people to run *benchmark* and use those numbers directly as a first approximation tuning, it could help quite a bit for people new to PostgreSQL experiencing poor performance. effective_cache_size then becomes essentially the last hand-set variable for medium sized installations. --