pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Florian Helmberger <fh@25th-floor.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_class reltuples/relpages not updated by autovacuum/vacuum
Date: Tue, 24 May 2011 22:47:49 -0400
Message-ID: <25017.1306291669@sss.pgh.pa.us> (raw)
In-Reply-To: <4DD28F73.6010108@25th-floor.com>
References: <4DD28F73.6010108@25th-floor.com>

Florian Helmberger <fh@25th-floor.com> writes:
> I'm running a production database with PostgreSQL 9.0.3 (64-bit) on 
> Debian 5.0.4 and have an issue with a TOAST table and far to frequent 
> autovacuum runs.

> I think I've pinned the problem down to the values pg_class holds for 
> the affected TOAST table:

> relpages  | 433596
> reltuples | 1868538

> These values are significantly too low. Interestingly, the autovacuum 
> logout reports the correct values:

> 	pages: 0 removed, 34788136 remain
> 	tuples: 932487 removed, 69599038 remain

> but these aren't stored in pg_class after each run.

That's exceedingly weird.  Do the pg_stat_all_tables columns update
after autovacuums on that table?

			regards, tom lane



view thread (48+ messages)  latest in thread

Message-ID: <25017.1306291669@sss.pgh.pa.us>
Permalink:  ../25017.1306291669@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25017.1306291669@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, fh@25th-floor.com
  Subject: Re: pg_class reltuples/relpages not updated by autovacuum/vacuum
  In-Reply-To: <25017.1306291669@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