pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: pgsql-admin@postgresql.org
Subject: Re: Least and most accessed tables in a database..
Date: Wed, 19 Mar 2003 17:41:48 +0530
Message-ID: <200303191741.48821.mallah@trade-india.com> (raw)
In-Reply-To: <200303191638.05331.mallah@trade-india.com>
References: <200303191638.05331.mallah@trade-india.com>



my GUC is configured like this:

#
#       Access statistics collection
#
stats_start_collector = true
stats_reset_on_server_start = true
stats_command_string = true
stats_row_level = true
#stats_block_level = false

how come there is not a single row in pg_statio_user_tables 
any of the stat is having a non zero value ?

tradein_clients=#  SELECT schemaname,relname,heap_blks_read,heap_blks_hit  
from  pg_statio_user_tables where ( heap_blks_read > 0 or heap_blks_hit >0 or 
idx_blks_read >0 or idx_blks_hit > 0 or toast_blks_read > 0 or toast_blks_hit 
> 0 or tidx_blks_read > 0 or tidx_blks_hit > 0 );

+------------+---------+----------------+---------------+
| schemaname | relname | heap_blks_read | heap_blks_hit |
+------------+---------+----------------+---------------+
+------------+---------+----------------+---------------+
(0 rows)


Regds
Mallah.


On Wednesday 19 Mar 2003 4:38 pm, Rajesh Kumar Mallah wrote:
> Hi ,
> 
> Is there anyway to know which tables are least/most  accessed 
> in a database?
> 
> My original problem is that there are too my stray tables in my database 
> which i want to get rid of. i thought the tables which are least accessed
> may be a good candidate for deletion.
> 
> just a thought does pg_statio_user_tables help ?
> 
> regds
> mallah.
> 
> 
> 
> 
> -- 
> Rajesh Kumar Mallah,
> Project Manager (Development)
> Infocom Network Limited, New Delhi
> phone: +91(11)6152172 (221) (L) ,9811255597 (M)
> 
> Visit http://www.trade-india.com ,
> India's Leading B2B eMarketplace.
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
> http://www.postgresql.org/docs/faqs/FAQ.html
> 
> 

-- 
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)

Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.



view thread (4+ messages)  latest in thread

Message-ID: <200303191741.48821.mallah@trade-india.com>
Permalink:  ../200303191741.48821.mallah@trade-india.com/
Also on:    postgresql.org/message-id/200303191741.48821.mallah@trade-india.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mallah@trade-india.com
  Subject: Re: Least and most accessed tables in a database..
  In-Reply-To: <200303191741.48821.mallah@trade-india.com>
  References: <200303191638.05331.mallah@trade-india.com> <200303191741.48821.mallah@trade-india.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