pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedclear pg_stats
3+ messages / 3 participants
[nested] [flat]
* clear pg_stats
@ 2007-11-29 21:46 Campbell, Lance <lance@uiuc.edu>
0 siblings, 2 replies; 3+ messages in thread
From: Campbell, Lance @ 2007-11-29 21:46 UTC (permalink / raw)
To: pgsql-performance
How can I clear the pg_stats views without restarting PostgreSQL? I
thought there was a function.
Thanks,
Lance Campbell
Project Manager/Software Architect
Web Services at Public Affairs
University of Illinois
217.333.0382
http://webservices.uiuc.edu
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: clear pg_stats
@ 2007-11-29 21:54 Heikki Linnakangas <heikki@enterprisedb.com>
parent: Campbell, Lance <lance@uiuc.edu>
1 sibling, 0 replies; 3+ messages in thread
From: Heikki Linnakangas @ 2007-11-29 21:54 UTC (permalink / raw)
To: Campbell, Lance <lance@uiuc.edu>; +Cc: pgsql-performance
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: clear pg_stats
@ 2007-11-29 21:57 Magnus Hagander <magnus@hagander.net>
parent: Campbell, Lance <lance@uiuc.edu>
1 sibling, 0 replies; 3+ messages in thread
From: Magnus Hagander @ 2007-11-29 21:57 UTC (permalink / raw)
To: Campbell, Lance <lance@uiuc.edu>; +Cc: pgsql-performance
Campbell, Lance wrote:
> How can I clear the pg_stats views without restarting PostgreSQL? I
> thought there was a function.
pg_stat_reset()
//Magnus
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2007-11-29 21:57 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-11-29 21:46 clear pg_stats Campbell, Lance <lance@uiuc.edu>
2007-11-29 21:54 ` Heikki Linnakangas <heikki@enterprisedb.com>
2007-11-29 21:57 ` Magnus Hagander <magnus@hagander.net>
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