pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Gourish Singbal <gourish@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Autovacuuming
Date: Mon, 24 Apr 2006 08:41:55 -0400
Message-ID: <20060424124155.GA13361@surnet.cl> (raw)
In-Reply-To: <674d1f8a0604232251v4649b456xc542fd831f8db4@mail.gmail.com>
References: <674d1f8a0604232251v4649b456xc542fd831f8db4@mail.gmail.com>

Gourish Singbal wrote:
> The Age of the database is 1144759836 . We have enabled autovacuuming .
> The details are:-
> autovacuum = on

Are you sure autovacuum is enabled?  Do a "SHOW autovacuum" just to be
sure.

The test for database-wide vacuum is:

database age > big_constant

where:

big_constant = (MaxTransactionId >> 3) * 3 - 100000) = 1610512733
MaxTransactionId = 0xFFFFFFFF
database age = Max(frozen age, vacuum age)
frozen age = next Transaction id - pg_database.datfrozenxid
vacuum age = next Transaction id - pg_database.datvacuumxid


Your database is still 465752897 transactions away from that apparently.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.



view thread (11+ messages)  latest in thread

Message-ID: <20060424124155.GA13361@surnet.cl>
Permalink:  ../20060424124155.GA13361@surnet.cl/
Also on:    postgresql.org/message-id/20060424124155.GA13361@surnet.cl

 · 

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: alvherre@commandprompt.com, gourish@gmail.com
  Subject: Re: Autovacuuming
  In-Reply-To: <20060424124155.GA13361@surnet.cl>
  References: <674d1f8a0604232251v4649b456xc542fd831f8db4@mail.gmail.com> <20060424124155.GA13361@surnet.cl>

* 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