pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Campbell, Lance <lance@uiuc.edu>
Cc: pgsql-performance@postgresql.org
Subject: Re: clear pg_stats
Date: Thu, 29 Nov 2007 21:54:08 +0000
Message-ID: <474F3500.7010109@enterprisedb.com> (raw)
In-Reply-To: <B10E6810AC2A2F4EA7550D072CDE8760197E2B@SAB-FENWICK.sab.uiuc.edu>
References: <B10E6810AC2A2F4EA7550D072CDE8760197E2B@SAB-FENWICK.sab.uiuc.edu>

Campbell, Lance wrote:
> How can I clear the pg_stats views without restarting PostgreSQL?  I
> thought there was a function.

SELECT pg_stat_reset();

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com



view thread (3+ messages)  latest in thread

Message-ID: <474F3500.7010109@enterprisedb.com>
Permalink:  ../474F3500.7010109@enterprisedb.com/
Also on:    postgresql.org/message-id/474F3500.7010109@enterprisedb.com

 · 

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: heikki@enterprisedb.com, lance@uiuc.edu
  Subject: Re: clear pg_stats
  In-Reply-To: <474F3500.7010109@enterprisedb.com>

* 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