Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1A28A1337BB7 for ; Fri, 29 Apr 2011 17:27:31 -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 88052-01 for ; Fri, 29 Apr 2011 20:27:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay.pcl-ipout01.plus.net (relay.pcl-ipout01.plus.net [212.159.7.99]) by mail.postgresql.org (Postfix) with ESMTP id E34131337BF5 for ; Fri, 29 Apr 2011 17:27:12 -0300 (ADT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAPoeu03Unw4U/2dsb2JhbACmEXfEMoV+BJJ/igQ Received: from outmx08.plus.net ([212.159.14.20]) by relay.pcl-ipout01.plus.net with ESMTP; 29 Apr 2011 21:26:58 +0100 Received: from [80.229.150.39] (helo=server.barnhouse) by outmx08.plus.net with esmtp (Exim) id 1QFuHC-0006lA-CL; Fri, 29 Apr 2011 21:26:58 +0100 Received: from [192.168.2.132] (James-PC.barnhouse [192.168.2.132]) by server.barnhouse (Postfix) with ESMTP id E22963A218E; Fri, 29 Apr 2011 21:27:41 +0100 (BST) Message-ID: <4DBB1F29.6010407@mansionfamily.plus.com> Date: Fri, 29 Apr 2011 21:27:21 +0100 From: James Mansion User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Greg Smith CC: Robert Haas , Claudio Freire , Tomas Vondra , pgsql-performance@postgresql.org Subject: Re: Performance References: <20110412171855.GA14292@tux> <4DA496FA.3070908@fuzzy.cz> <8F22D592-23C1-4A3C-94A5-48363332ADD3@darkstatic.com> <4DA4BFA2.5060601@fuzzy.cz> <4DA4D40A.4010200@fuzzy.cz> <4DA56DA8020000250003C783@gw.wicourts.gov> <4DA6216E.9020907@fuzzy.cz> <4DA63125.5070106@fuzzy.cz> <4DBA75DC.6070506@mansionfamily.plus.com> <4DBB09B5.80108@2ndquadrant.com> In-Reply-To: <4DBB09B5.80108@2ndquadrant.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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/423 X-Sequence-Number: 43485 Greg Smith wrote: > There are also some severe query plan stability issues with this idea > beyond this. The idea that your plan might vary based on execution > latency, that the system load going up can make query plans alter with > it, is terrifying for a production server. > I thought I was clear that it should present some stats to the DBA, not that it would try to auto-tune? This thread started with a discussion of appropriate tunings for random page cost vs sequential page cost I believe,, based on some finger in the air based on total size vs available disk cache. And it was observed that on systems that have very large databases but modest hot data, you can perform like a fully cached system, for much of the time. I'm just suggesting providing statistical information to the DBA which will indicate whether the system has 'recently' been behaving like a system that runs from buffer cache and/or subsystem caches, or one that runs from disk platters, and what the actual observed latency difference is. It may well be that this varies with time of day or day of week. Whether the actual latencies translate directly into the relative costs is another matter.