pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pchan@contigo.com
To: pgsql-bugs@postgresql.org
Subject: BUG #9447: still bug in autovacuum after upgrading to 9.1.11?
Date: Wed, 05 Mar 2014 18:07:58 +0000
Message-ID: <20140305180758.1915.10878@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:      9447
Logged by:          Pius Chan
Email address:      pchan@contigo.com
PostgreSQL version: 9.1.11
Operating system:   Linux version 2.6.18-371.3.1.el5
Description:        

After upgrading to 9.1.11, I vacuum the database as instructed in the
release note (i.e. set vacuum_freeze_table_age=0, then run vacuum). I also
run the utility as described in this blog:

http://www.depesz.com/2013/12/06/what-does-fix-vacuums-tests-to-see-whether-it-can-update-relfrozenx...

However, after a month upgrading to 9.1.11, I run the utility again and
still find rows with strange xmax. The current txid in the system is
1922768288 but I find several rows in a table with xmax <= 5000 and I am
sure some of them were updated after upgrade to 9.1.11. For example:

MY_DB=# select xmin,xmax,* from my_table where xmax=3389;
-[ RECORD 1 ]---+-------------------
xmin            | 2
xmax            | 3389
id              | 35461
name            | Speed  Over 75 kph

MY_DB=# select relname, relfrozenxid from pg_class where
relname='my_table';
-[ RECORD 1 ]+-----------
relname      | my_table
relfrozenxid | 1872725454

I usually fix the bad rows by updating them. However, when I run the utility
every two weeks, I always find rows with exceptionally low xmax again.

Thanks a lot for your help.

Pius


-- 
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 (2+ messages)  latest in thread

Message-ID: <20140305180758.1915.10878@wrigleys.postgresql.org>
Permalink:  ../20140305180758.1915.10878@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20140305180758.1915.10878@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: pchan@contigo.com
  Subject: Re: BUG #9447: still bug in autovacuum after upgrading to 9.1.11?
  In-Reply-To: <20140305180758.1915.10878@wrigleys.postgresql.org>
  References: <20140305180758.1915.10878@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