Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2DF6F1337BA8 for ; Fri, 22 Apr 2011 10:24:38 -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 16057-02 for ; Fri, 22 Apr 2011 13:24:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from out2.mail.amis.hr (out2.mail.amis.hr [188.129.0.5]) by mail.postgresql.org (Postfix) with ESMTP id 86924133798E for ; Fri, 22 Apr 2011 10:24:19 -0300 (ADT) Received: from out.fsec.sm.srv.amis.hr (out.fsec.sm.srv.amis.hr [192.168.106.22]) by out2.mail.amis.hr (Postfix) with ESMTP id 1DD952004B; Fri, 22 Apr 2011 15:24:18 +0200 (CEST) Received: from pps.filterd (out [127.0.0.1]) by out.fsec.sm.srv.amis.hr (8.14.3/8.14.3) with SMTP id p3MDGcb9026000; Fri, 22 Apr 2011 15:24:18 +0200 Received: from smtp.amis.hr (smtp.sm.srv.amis.hr [192.168.106.39]) by out.fsec.sm.srv.amis.hr with ESMTP id vtq8308ju-1; Fri, 22 Apr 2011 15:24:17 +0200 A-Original-Client-UID: 188.129.75.225 splivalo Received: from [192.168.10.1] (cpe-188-129-75-225.dynamic.amis.hr [188.129.75.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: splivalo) by smtp.amis.hr (Postfix) with ESMTPSA id BF2AA273; Fri, 22 Apr 2011 15:24:17 +0200 (CEST) Message-ID: <4DB18182.6060106@megafon.hr> Date: Fri, 22 Apr 2011 15:24:18 +0200 From: Mario Splivalo User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: =?ISO-8859-1?Q?C=E9dric_Villemain?= CC: raghu ram , pgsql-admin@postgresql.org Subject: Re: Reseting statistics, cluster wide References: <4DAF3492.1000205@megafon.hr> <4DAFE1F0.6030508@megafon.hr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15, 1.0.148, 0.0.0000 definitions=2011-04-22_06:2011-04-22, 2011-04-22, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1104220065 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/206 X-Sequence-Number: 37387 On 04/22/2011 03:20 PM, Cédric Villemain wrote: > 2011/4/21 raghu ram: >>> >>> Heh, I've neglected to mention that i'm using postgres 8.4.5 on Debian >>> Stable. Is there a way to reset statistics on pg8.4? I've tested it on 9.0 >>> and it works there. >>> >> >> AFAIK, I dont think we can achieve this in PG 8.4 at cluster level. Can >> anybody has the information ? >> -- Raghu > > With 8.4 you only have the pg_stat_reset(), it resets all stats. The > finest one in 9.0 is a new feature/improvement. Yeps, but that is only for database-related statistics. Stuff returned from pg_stat_bgwriter view are not reset. Mario