Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLGEj-0001n0-30 for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Mar 2014 18:08:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WLGEi-0006FN-Jh for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Mar 2014 18:08:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLGEi-0006FH-1R for pgsql-bugs@postgresql.org; Wed, 05 Mar 2014 18:08:08 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLGEd-0006od-Q5 for pgsql-bugs@postgresql.org; Wed, 05 Mar 2014 18:08:06 +0000 MIME-Version: 1.0 Subject: BUG #9447: still bug in autovacuum after upgrading to 9.1.11? To: pgsql-bugs@postgresql.org From: pchan@contigo.com Date: Wed, 05 Mar 2014 18:07:58 +0000 Message-ID: <20140305180758.1915.10878@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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-relfrozenxid-really-mean/ 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