Re: Reinitialising stats once only without restarting

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Anton Melser <melser(dot)anton(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Reinitialising stats once only without restarting
Date: 2007-12-20 13:35:59
Message-ID: 20071220133559.GF5309@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Jan de Visser 2007-12-20 13:49:44 Re: Dual core Opterons beating quad core Xeons?
Previous Message Dimitri Fontaine 2007-12-20 11:14:34 Re: Minimizing dead tuples caused by update triggers