X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4E70052896 for ; Fri, 10 Jun 2005 04:20:30 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28522-06 for ; Fri, 10 Jun 2005 07:20:27 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 99E5C52960 for ; Fri, 10 Jun 2005 04:20:24 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id D6C0040C0F2; Fri, 10 Jun 2005 08:20:19 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id A06F115ED5; Fri, 10 Jun 2005 08:19:07 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20167-10; Fri, 10 Jun 2005 08:19:04 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 22D9A15EE9; Fri, 10 Jun 2005 08:17:38 +0100 (BST) Message-ID: <42A93E91.5070502@archonet.com> Date: Fri, 10 Jun 2005 08:17:37 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yann Michel Cc: pgsql-performance@postgresql.org Subject: Re: postgresql.conf runtime statistics default References: <20050609100852.GA16538@zoom.spline.inf.fu-berlin.de> <42A83FFA.3030209@archonet.com> <20050610045702.GA19866@zoom.spline.inf.fu-berlin.de> In-Reply-To: <20050610045702.GA19866@zoom.spline.inf.fu-berlin.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.054 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/232 X-Sequence-Number: 12869 Yann Michel wrote: > Hi, > > On Thu, Jun 09, 2005 at 02:11:22PM +0100, Richard Huxton wrote: > >>>To my question: I found the parameter "stats_reset_on_server_start" >>>which is set to true by default. Why did you choose this (and not false) >>>and what are the impacts of changeing it to false? I mean, as long as I >>>understood it, each query or statements generates some statistic data >>>which is used by the optimizer (or anything equal) later on. So in my >>>oppinion, wouldn't it be better so set this parameter to false and to >>>enable a kind of a "startup reset_stats" option? >> >>This is administrator statistics (e.g. number of disk blocks read from >>this index) not planner statistics. You're right - it would be foolish >>to throw away planner stats. > > > So what is best to set this parameter to and when? As I read this > parameter is documented within the section "16.4.7.2. Query and Index > Statistics Collector" so I guess it is better to set it to false as > described above. Or am I wrong? It depends on whether you want to know how much activity your tables/indexes have received *ever* or since you last restarted. If you altered your database schema, added/removed indexes or changed hardware/configuration then you might want to reset the counts to zero to more easily see the effect of the new setup. -- Richard Huxton Archonet Ltd