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 2CB8852921 for ; Fri, 10 Jun 2005 01:57:08 -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 91451-06 for ; Fri, 10 Jun 2005 04:57:05 +0000 (GMT) Received: from zoom.spline.inf.fu-berlin.de (zoom.spline.inf.fu-berlin.de [160.45.117.148]) by svr1.postgresql.org (Postfix) with ESMTP id A5786528E0 for ; Fri, 10 Jun 2005 01:57:04 -0300 (ADT) Received: by zoom.spline.inf.fu-berlin.de (Postfix, from userid 2091) id 6EE588C784; Fri, 10 Jun 2005 06:57:03 +0200 (CEST) Date: Fri, 10 Jun 2005 06:57:02 +0200 From: Yann Michel To: Richard Huxton Cc: pgsql-performance@postgresql.org Subject: Re: postgresql.conf runtime statistics default Message-ID: <20050610045702.GA19866@zoom.spline.inf.fu-berlin.de> References: <20050609100852.GA16538@zoom.spline.inf.fu-berlin.de> <42A83FFA.3030209@archonet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42A83FFA.3030209@archonet.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200506/229 X-Sequence-Number: 12866 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? Regards, Yann