pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Boes <jboes@nexcerpt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_class.reltuples not reset by VACUUM?
Date: Tue, 08 Apr 2003 15:10:35 -0400
Message-ID: <19299.1049829035@sss.pgh.pa.us> (raw)
In-Reply-To: <1049825429.4871.36.camel@takin.private.nexcerpt.com>
References: <b6v1p3$cp4$1@news.hub.org>
	<15397.1049824333@sss.pgh.pa.us>
	<1049825429.4871.36.camel@takin.private.nexcerpt.com>

Jeff Boes <jboes@nexcerpt.com> writes:
> Well, here's the present state of the table, 24 hours later:

> # select count(*) from job_queue;
>  count 
> -------
>   2369
> (1 row)

> # vacuum analyze verbose job_queue;

> NOTICE:  --Relation job_queue--
> NOTICE:  Pages 6831: Changed 2, Empty 0; Tup 358441: Vac 0, Keep 356048,
> UnUsed 5.
> 	Total CPU 0.00s/0.15u sec elapsed 0.16 sec.

Yup, you definitely have a big problem with dead-but-unreclaimed tuples.
Look for some client that's holding an open transaction for long
periods.

			regards, tom lane




view thread (11+ messages)  latest in thread

Message-ID: <19299.1049829035@sss.pgh.pa.us>
Permalink:  ../19299.1049829035@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19299.1049829035@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, jboes@nexcerpt.com
  Subject: Re: pg_class.reltuples not reset by VACUUM?
  In-Reply-To: <19299.1049829035@sss.pgh.pa.us>
  References: <b6v1p3$cp4$1@news.hub.org> <15397.1049824333@sss.pgh.pa.us> <1049825429.4871.36.camel@takin.private.nexcerpt.com> <19299.1049829035@sss.pgh.pa.us>

* 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