pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Boes <jboes@nexcerpt.com>
To: pgsql-admin@postgresql.org
Subject: Re: Vacuum stats interpreted?
Date: Wed, 26 Nov 2003 21:48:26 GMT
Message-ID: <d505c533699f41f775300967bfdf6b94@news.teranews.com> (raw)
References: <6b79e0aa2a1c3668937e1ce087c4a819@news.teranews.com>
	<17932.1069883017@sss.pgh.pa.us>

At some point in time, tgl@sss.pgh.pa.us (Tom Lane) wrote:

>Jeff Boes <jboes@qtm.net> writes:
>> The "Keep" and "UnUsed" numbers seem high to me, compared to other tables. Can
>> anyone interpret these and tell me anything about what we could do with this
>> table to make it "look" better?
>
>"Keep" is the number of rows that are committed dead but had to be kept
>anyway, because there are open transactions old enough to still
>potentially see them.  The only way to reduce that is to not have old
>transactions hanging 'round while you vacuum.
>
>UnUsed is the number of empty line-pointer slots.  At 4 bytes apiece,
>this would have to vastly exceed the number of live tuples before you
>should worry much.

For which values of "vastly"? I have a small table (1-2k rows) which has a ratio
of UnUsed:Tuples of 50-500.

The table in question has a ratio of about 10 or 11:1.

For some tables (not this one), we find that it significantly improves
performance (of non-indexed queries) to pg_dump and reload the table
periodically. I've been asked to try to quantify (from these vacuum numbers)
when we can predict that a dump-and-reload would be valuable.



view thread (6+ messages)  latest in thread

Message-ID: <d505c533699f41f775300967bfdf6b94@news.teranews.com>
Permalink:  ../d505c533699f41f775300967bfdf6b94@news.teranews.com/
Also on:    postgresql.org/message-id/d505c533699f41f775300967bfdf6b94@news.teranews.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: jboes@nexcerpt.com
  Subject: Re: Vacuum stats interpreted?
  In-Reply-To: <d505c533699f41f775300967bfdf6b94@news.teranews.com>
  References: <6b79e0aa2a1c3668937e1ce087c4a819@news.teranews.com> <17932.1069883017@sss.pgh.pa.us> <d505c533699f41f775300967bfdf6b94@news.teranews.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