pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gourish Singbal <gourish@gmail.com>
To: Chris Hoover <revoohc@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: More Autovacuum Questions
Date: Tue, 16 May 2006 23:39:23 +0530
Message-ID: <674d1f8a0605161109v1292daf1j509baf29442faadc@mail.gmail.com> (raw)
In-Reply-To: <1d219a6f0605161100j1a397288y5ed17493542f6f45@mail.gmail.com>
References: <1d219a6f0605161100j1a397288y5ed17493542f6f45@mail.gmail.com>

U can install pgstattuple module which is available in the contrib directory
and run it on production as

psql> \x
psql> select * from pgstattuple('public'.'tablename');

it displays the table_len, tuple_count, tuple_len, tuple_percent,
dead_tuple_count, dead_tuple_len,dead_tuple_percent,free_space,free_percent
for the table .


On 5/16/06, Chris Hoover <revoohc@gmail.com> wrote:
>
> Thanks to those who answered my first question.  I am looking at
> implementing autovacuuming on our new production 8.1.3 systems.  I am
> reading the documentation on the various configuration parameters.  The
> autovacuum_analyze_threshold and autovacuum_vacuum_threshold talk about the
> number of updated and deleted tuples.  Is there anyway to calculate these
> numbers in a running database?
>
> The reason I'm asking is that we are having some sporadic slowness issues
> with our databases, and I'm wanting to see how the database looks during
> these times.  I know that vacuuming some specific tables tends to fix the
> problem.  So, if I can see what autovacuum might see, I could set the
> parameters correctly to try and fix the issue.
>
> Anyway, are these number available to me?
>
> Thanks,
>
>
> Chris
>



-- 
Best,
Gourish Singbal

view thread (8+ messages)  latest in thread

Message-ID: <674d1f8a0605161109v1292daf1j509baf29442faadc@mail.gmail.com>
Permalink:  ../674d1f8a0605161109v1292daf1j509baf29442faadc@mail.gmail.com/
Also on:    postgresql.org/message-id/674d1f8a0605161109v1292daf1j509baf29442faadc@mail.gmail.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-admin@postgresql.org
  Cc: gourish@gmail.com, revoohc@gmail.com
  Subject: Re: More Autovacuum Questions
  In-Reply-To: <674d1f8a0605161109v1292daf1j509baf29442faadc@mail.gmail.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