Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A98F9632629 for ; Mon, 23 Aug 2010 16:24:41 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 29480-01 for ; Mon, 23 Aug 2010 19:24:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 152D66322C8 for ; Mon, 23 Aug 2010 16:24:33 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o7NJOL616202; Mon, 23 Aug 2010 15:24:21 -0400 (EDT) From: Bruce Momjian Message-Id: <201008231924.o7NJOL616202@momjian.us> Subject: Re: Return of the Solaris vacuum polling problem -- anyone remember this? In-Reply-To: <10189.1282590934@sss.pgh.pa.us> To: Tom Lane Date: Mon, 23 Aug 2010 15:24:21 -0400 (EDT) CC: Alvaro Herrera , Josh Berkus , PostgreSQL-development X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1282591461-24313-1_" Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/1661 X-Sequence-Number: 168464 --ELM1282591461-24313-1_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Tom Lane wrote: > Bruce Momjian writes: > > OK, I have attached a proposed patch to improve this. I moved the > > pg_clog mention to a new paragraph and linked it to the reason the > > default is relatively low. > > The references to "vacuum freeze" are incorrect; autovacuum does NOT > do the equivalent of VACUUM FREEZE. Please stop playing around with > the perfectly good existing wording. Uh, so VACUUM FREEZE unconditionally freezes all rows, while vacuum just freezes rows who's xid is older than vacuum_freeze_min_age? I saw that in our current docs in reference to VACUUM FREEZE: Selects aggressive "freezing" of tuples. Specifying FREEZE is equivalent to performing VACUUM with the vacuum_freeze_min_age parameter set to zero. The FREEZE option is deprecated and will be removed in a future release; set the parameter instead. Updated patch attached. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + --ELM1282591461-24313-1_ Content-Transfer-Encoding: 7bit Content-Type: text/x-diff Content-Disposition: inline; filename="/pgpatches/autovac" Index: doc/src/sgml/config.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/config.sgml,v retrieving revision 1.307 diff -c -c -r1.307 config.sgml *** doc/src/sgml/config.sgml 23 Aug 2010 02:43:25 -0000 1.307 --- doc/src/sgml/config.sgml 23 Aug 2010 18:55:02 -0000 *************** *** 4150,4161 **** Specifies the maximum age (in transactions) that a table's pg_class.relfrozenxid field can ! attain before a VACUUM operation is forced to allow removal ! of old files from the pg_clog subdirectory and prevent ! transaction ID wraparound within the table. Note that the system ! will launch autovacuum processes to prevent wraparound even when ! autovacuum is otherwise disabled. ! The default is 200 million transactions. This parameter can only be set at server start, but the setting can be reduced for individual tables by changing storage parameters. --- 4150,4165 ---- Specifies the maximum age (in transactions) that a table's pg_class.relfrozenxid field can ! attain before a VACUUM operation is forced ! to prevent transaction ID wraparound within the table. ! Note that the system will launch autovacuum processes to ! prevent wraparound even when autovacuum is otherwise disabled. ! ! ! ! Vacuum also allows removal of old files from the ! pg_clog subdirectory, which is why the default ! is a relatively low 200 million transactions. This parameter can only be set at server start, but the setting can be reduced for individual tables by changing storage parameters. --ELM1282591461-24313-1_--