Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 452422E317B for ; Thu, 20 Dec 2007 09:36:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 62752-03 for ; Thu, 20 Dec 2007 09:36:07 -0400 (AST) Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 366BC2E2D5A for ; Thu, 20 Dec 2007 09:36:04 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-76-117.bk5-dsl.surnet.cl [200.126.76.117]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id lBKDZxPu017740 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 Dec 2007 05:36:01 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 139F447C88; Thu, 20 Dec 2007 10:35:59 -0300 (CLST) Date: Thu, 20 Dec 2007 10:35:59 -0300 From: Alvaro Herrera To: Anton Melser Cc: pgsql-performance@postgresql.org Subject: Re: Reinitialising stats once only without restarting Message-ID: <20071220133559.GF5309@alvh.no-ip.org> References: <92d3a4950712200205j3bb24e8ct1bb18a306a9ae9f8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <92d3a4950712200205j3bb24e8ct1bb18a306a9ae9f8@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Thu, 20 Dec 2007 05:36:02 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/304 X-Sequence-Number: 28120 Anton Melser escribió: > Hi, > Sorry but I couldn't find the answer to this... > > I would like to empty all stats (pg_stat_all_tables probably mostly) > so I can get an idea of what's going on now. Is this possible? I > didn't want to just go deleting without knowing what it would do... Sure, use pg_stat_reset(); -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support