pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jd@ods.org
To: pgsql-bugs@postgresql.org
Subject: BUG #12772: Unexpected autovacuum behavior
Date: Sat, 14 Feb 2015 18:14:37 +0000
Message-ID: <20150214181437.2584.18609@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      12772
Logged by:          Jason DiCioccio
Email address:      jd@ods.org
PostgreSQL version: 9.3.6
Operating system:   Ubuntu 14.04 (Linux 3.13.0-40-generic)
Description:        

Here's the situation I ran into:

autovacuum was vacuuming a large table in database 'db1' (to prevent txid
wraparound).  It turns out that one of the indexes of this table was
corrupted from the 9.3.4 WAL issue.  So VACUUM failed repeatedly. 
Nonetheless, autovacuum kept trying.

Meanwhile in database 'db2', there were a number of tables in serious need
of vacuuming.  However, autovacuum would never touch these, even though
there were far less than autovacuum_max_workers running.  Other tables in
database 'db1' WERE being vacuumed, however.

So it appears that the logic is that autovacuum operates solely on one
database at a time.  Even if there is only one table that needs vacuuming in
that first database, it will not spawn any workers to vacuum tables that do
need vacuuming in a second database until it has completed vacuuming the
necessary tables from the first database.

This, to me, is unexpected behavior.  I'd expect autovacuum to not act as if
there were a large barrier between databases and to vacuum any table that
need it and that the configuration permits.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)  latest in thread

Message-ID: <20150214181437.2584.18609@wrigleys.postgresql.org>
Permalink:  ../20150214181437.2584.18609@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20150214181437.2584.18609@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: jd@ods.org
  Subject: Re: BUG #12772: Unexpected autovacuum behavior
  In-Reply-To: <20150214181437.2584.18609@wrigleys.postgresql.org>
  References: <20150214181437.2584.18609@wrigleys.postgresql.org>

* 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