Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E388A1337BD0 for ; Sun, 10 Apr 2011 20:28:18 -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 86783-05 for ; Sun, 10 Apr 2011 23:28:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gransy.com (mail.gransy.com [82.208.29.194]) by mail.postgresql.org (Postfix) with ESMTP id CFBA1133740B for ; Sun, 10 Apr 2011 20:27:59 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.gransy.com (Postfix) with ESMTP id 02FD62E5A024 for ; Mon, 11 Apr 2011 01:27:58 +0200 (CEST) Received: from mail.gransy.com ([127.0.0.1]) by localhost (nathalia.gransy.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2kt2-pgY48EE for ; Mon, 11 Apr 2011 01:27:57 +0200 (CEST) Received: from [192.168.1.221] (ip-94-112-0-189.net.upcbroadband.cz [94.112.0.189]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.gransy.com (Postfix) with ESMTPSA id E1C722E5A014 for ; Mon, 11 Apr 2011 01:27:57 +0200 (CEST) Message-ID: <4DA23CFE.7020109@fuzzy.cz> Date: Mon, 11 Apr 2011 01:27:58 +0200 From: Tomas Vondra User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101219 Lightning/1.0b3pre Thunderbird/3.1.7 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: optimizer parameters References: <77760.3733.qm@web38606.mail.mud.yahoo.com> In-Reply-To: <77760.3733.qm@web38606.mail.mud.yahoo.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201104/98 X-Sequence-Number: 43160 There's a quite nice description in the docs: http://www.postgresql.org/docs/9.0/interactive/row-estimation-examples.html and a some more details for indexes: http://www.postgresql.org/docs/9.0/interactive/index-cost-estimation.html A bit more info about how this is used is available in this presentation: http://momjian.us/main/writings/pgsql/internalpics.pdf But if you need more details, then I quess the best approach to get it is to read the sources (search for the cost estimation etc.). regards Tomas Dne 10.4.2011 20:22, Radhya sahal napsal(a): > Dear ,all > i would to ask you about how postgresql optimizer parameters :- > 1- random page cost > > 2- cpu tuple cost > > 3- cpu operator cost > > 4- cpu index tuple cost > > 5- effective cache size > > play as parameters in cost estimator equation > > i imagine that cost function is the same as > > f(x,y,z,....)=ax+by...... > > cost(cpu tuple cost,cpu operator cost,....) > > can any one help me to know the equation that cost estimator used it.. > > My regard > > Radhya,,,, > > >