pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #9447: still bug in autovacuum after upgrading to 9.1.11? 2+ messages / 2 participants [nested] [flat]
* BUG #9447: still bug in autovacuum after upgrading to 9.1.11? @ 2014-03-05 18:07 pchan@contigo.com 0 siblings, 1 reply; 2+ messages in thread From: pchan@contigo.com @ 2014-03-05 18:07 UTC (permalink / raw) To: pgsql-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 ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #9447: still bug in autovacuum after upgrading to 9.1.11? @ 2014-03-05 18:39 Alvaro Herrera <alvherre@2ndquadrant.com> parent: pchan@contigo.com 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2014-03-05 18:39 UTC (permalink / raw) To: pchan@contigo.com; +Cc: pgsql-bugs pchan@contigo.com wrote: > 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... Uh, that article has very odd formatting and is rather hard to read and also long, so I'm not gonna read it. It might contain errors, if you're going from what it says. > 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: It's normal to have low numbers used in Xmax. This just means that they used a multixact instead of a plain transaction ID. You can check that by using the pageinspect extension and seeing the flag set in the t_infomask field. I'm not saying there is no bug here, only that you have provided no evidence that there is. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-03-05 18:39 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2014-03-05 18:07 BUG #9447: still bug in autovacuum after upgrading to 9.1.11? pchan@contigo.com 2014-03-05 18:39 ` Alvaro Herrera <alvherre@2ndquadrant.com>
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