pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Anton Melser <melser.anton@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Reinitialising stats once only without restarting
Date: Thu, 20 Dec 2007 10:35:59 -0300
Message-ID: <20071220133559.GF5309@alvh.no-ip.org> (raw)
In-Reply-To: <92d3a4950712200205j3bb24e8ct1bb18a306a9ae9f8@mail.gmail.com>
References: <92d3a4950712200205j3bb24e8ct1bb18a306a9ae9f8@mail.gmail.com>

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



view thread (3+ messages)  latest in thread

Message-ID: <20071220133559.GF5309@alvh.no-ip.org>
Permalink:  ../20071220133559.GF5309@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20071220133559.GF5309@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: alvherre@commandprompt.com, melser.anton@gmail.com
  Subject: Re: Reinitialising stats once only without restarting
  In-Reply-To: <20071220133559.GF5309@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox