Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 063CF9FBDC0 for ; Thu, 26 Apr 2007 22:58:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 61103-02 for ; Thu, 26 Apr 2007 22:58:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.net-domino.com (www.net-domino.com [74.208.11.96]) by postgresql.org (Postfix) with ESMTP id D75FE9FBB58 for ; Thu, 26 Apr 2007 22:58:32 -0300 (ADT) Received: from [127.0.0.1] (u15245314.onlinehome-server.com [74.208.11.96]) by mail.net-domino.com (8.13.7/8.13.6) with ESMTP id l3R1wFYZ019030 for ; Thu, 26 Apr 2007 21:58:22 -0400 Message-ID: <463158DD.3060602@mochima.com> Date: Thu, 26 Apr 2007 21:58:53 -0400 From: Carlos Moreno User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Feature Request --- was: PostgreSQL Performance Tuning References: <46310247.2050802@pinpointresearch.com> In-Reply-To: <46310247.2050802@pinpointresearch.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Added-Header: Sample_milter accepted message X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/451 X-Sequence-Number: 24328 Steve Crawford wrote: > Have you changed _anything_ from the defaults? The defaults are set so > PG will run on as many installations as practical. They are not set for > performance - that is specific to your equipment, your data, and how you > need to handle the data. Is this really the sensible thing to do? I know we should not encourage the world we're leaving in even more in the ways of "have the computer do everything for us so that we don't need to have even a clue about what we're doing" ... 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? Then, perhaps command switches so that you could specify the type of access you estimate for your system. Perhaps something like: ./configure --db-size=100GB --write-percentage=20 .... etc. (switch write-percentage above indicates that we estimate that 20% of the DB activity would be writing to the disk --- there may be other switches to indicate the percentage of queries that are transactions, the percentage of queries that are complex; percentage that require index usage, etc. etc. etc.)... And then, based on that, a better set of defaults could be set by the configuration script. Does this make sense? Or perhaps I'm watching too much science fiction? Carlos --