agora inbox for [email protected]  
help / color / mirror / Atom feed
From: Jeff Boes <[email protected]>
To: PostgreSQL-development <[email protected]>
Subject: pg_autovacuum misinterpreting reltuples?
Date: Fri, 30 Apr 2004 09:45:21 -0400
Message-ID: <[email protected]> (raw)

We noticed that one of our high-volume insert tables was being vacuumed 
every time pg_autovacuum woke up. (I"m running it with the default 
threshold values, and a 900-second sleep cycle.) The table has a few 
million rows in it. With "debug = 2" on, here's what the pg_autovacuum 
log reports for this table:

 [2004-04-30 09:32:11 AM]   table name:     nexcerpt."public"."links"
 [2004-04-30 09:32:11 AM]      relid: 1014188;   relisshared: 0
 [2004-04-30 09:32:11 AM]      reltuples: 3;  relpages: 118888

Note that "reltuples" is being reported as "3", which seems a bit low. Aha!

# select reltuples from pg_class where relname = 'links';
  reltuples
-------------
 3.32127e+06
(1 row)

Is it possible that pg_autovacuum sees this value as "3"? Or is it just 
mis-formatting the value in the log?

-- 
Jeff Boes                                      vox 269.226.9550 ext 24
Database Engineer                                     fax 269.349.9076
Nexcerpt, Inc.                                 http://www.nexcerpt.com
           ...Nexcerpt... Extend your Expertise




view thread (3+ messages)  latest in thread

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: [email protected]
  Cc: [email protected]
  Subject: Re: pg_autovacuum misinterpreting reltuples?
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox