Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D0F0663254D for ; Wed, 21 Jan 2009 22:44:55 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 30808-06 for ; Wed, 21 Jan 2009 22:44:51 -0400 (AST) X-Greylist: delayed 00:05:02.356433 by SQLgrey-1.7.6 Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [203.16.214.146]) by mail.postgresql.org (Postfix) with ESMTP id C18F863253F for ; Wed, 21 Jan 2009 22:44:51 -0400 (AST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EAPZod0mWZbyF/2dsb2JhbACBbcd5hXM X-IronPort-AV: E=Sophos;i="4.37,304,1231075800"; d="scan'208";a="272778292" Received: from ppp188-133.static.internode.on.net (HELO neptune.mirrabooka.com) ([150.101.188.133]) by ipmail01.adl6.internode.on.net with ESMTP; 22 Jan 2009 13:09:44 +1030 Received: from localhost.localdomain (localhost [127.0.0.1]) by neptune.mirrabooka.com (Postfix) with ESMTP id 3D9DF5F606 for ; Thu, 22 Jan 2009 12:39:43 +1000 (EST) Message-ID: <4977DC6E.8070201@mirrabooka.com> Date: Thu, 22 Jan 2009 12:39:42 +1000 From: Rob Newton User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: autovacuum and transaction ID wraparound Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200901/112 X-Sequence-Number: 31159 Hi admins, I'm running version 8.1.9 of postgres, and using autovacuum, and I'm worried that I'm heading towards a transaction ID wraparound failure. autovacuum is running because it is recovering the disk space of updated rows (of which there are many each second). But age(datfrozenid) is over 1.2 billion and steadily increasing. From what I can understand of the manual, once the age nears 2 billion there will be problems. At what age (default for version 8.1) should autovacuum kick in and reassign the frozen XIDs so that the age is reduced? Some more info: postgres=# show autovacuum_freeze_max_age; ERROR: unrecognized configuration parameter "autovacuum_freeze_max_age" postgres=# SELECT datname, datfrozenxid FROM pg_database; datname | datfrozenxid ----------------+-------------- postgres | 1075383673 template1 | 1075383787 template0 | 499 nga_cane_entry | 1082334308 (4 rows) postgres=# SELECT datname, age(datfrozenxid) FROM pg_database; datname | age ----------------+------------- postgres | 1213693293 template1 | 1213693179 template0 | -2005890829 nga_cane_entry | 1206742658 (4 rows) So, is autovacuum doing it's job? Many thanks, Rob Newton