Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 025439FC061 for ; Thu, 26 Apr 2007 23:49:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 42439-08 for ; Thu, 26 Apr 2007 23:49:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 98E199FC03E for ; Thu, 26 Apr 2007 23:49:17 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l3R2nDTj002680; Thu, 26 Apr 2007 22:49:13 -0400 (EDT) To: Carlos Moreno cc: pgsql-performance@postgresql.org Subject: Re: Feature Request --- was: PostgreSQL Performance Tuning In-reply-to: <463158DD.3060602@mochima.com> References: <46310247.2050802@pinpointresearch.com> <463158DD.3060602@mochima.com> Comments: In-reply-to Carlos Moreno message dated "Thu, 26 Apr 2007 21:58:53 -0400" Date: Thu, 26 Apr 2007 22:49:13 -0400 Message-ID: <2679.1177642153@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/452 X-Sequence-Number: 24329 Carlos Moreno writes: > ... But, wouldn't it make sense that the configure script > determines the amount of physical memory and perhaps even do a HD > speed estimate to set up defaults that are closer to a > performance-optimized > configuration? No. Most copies of Postgres these days are executed on machines very far away from where the code was built. It's a little bit safer to try to tune things at initdb time ... as indeed we already do. But the fundamental problem remains that we don't know that much about how the installation will be used. For example, the planner configuration parameters turn out to have not that much to do with the absolute speed of your drive, and a whole lot to do with the ratio of the size of your database to the amount of RAM you've got; and the ultimate size of the DB is one thing initdb certainly can't guess. Also, there is an extremely good reason why Postgres will never be set up to try to take over the whole machine by default: most of the developers run multiple postmasters on their machines. regards, tom lane