Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Way to eliminate pg_dump activity from pg_stat_all ?


  • From: Bryce Nesbitt <bryce2(at)obviously(dot)com>
  • To: sql pgsql <pgsql-sql(at)postgresql(dot)org>
  • Subject: Way to eliminate pg_dump activity from pg_stat_all ?
  • Date: Tue, 16 Dec 2008 12:55:42 -0800
  • Message-id: <494815CE.5090907@obviously.com> <text/plain>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
I've got a bunch of tables in a legacy database that I <i>know</i> are
<i>never</i> used, and some more I'm not sure about.&nbsp; So I tried to
identify and confirm with:<br>
<blockquote><tt>select pg_stat_reset(); <br>
&nbsp;&nbsp;&nbsp;&nbsp; <br>
-- Wait a long time<br>
  <br>
select * from pg_stat_all_tables where schemaname='public' order by
seq_scan,seq_tup_read;<br>
select greatest(heap_blks_read,heap_blks_hit),relname from
pg_statio_all_tables where schemaname='public' order by 1 desc; </tt><br>
</blockquote>
But I think I'm getting clutter from the nightly backups.&nbsp; Is there a
way to keep pg_dump activity out of the statistics? I can think of
several reasons to want such activity excluded, not just this one.<br>
</body>
</html>



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group