Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 53A24632EB2 for ; Mon, 23 Aug 2010 15:56:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 52634-03 for ; Mon, 23 Aug 2010 18:56:15 +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 E4C2363287F for ; Mon, 23 Aug 2010 15:56:15 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o7NItt310271; Mon, 23 Aug 2010 14:55:55 -0400 (EDT) From: Bruce Momjian Message-Id: <201008231855.o7NItt310271@momjian.us> Subject: Re: Return of the Solaris vacuum polling problem -- anyone remember this? In-Reply-To: <1282581999-sup-8560@alvh.no-ip.org> To: Alvaro Herrera Date: Mon, 23 Aug 2010 14:55:55 -0400 (EDT) CC: Tom Lane , Josh Berkus , PostgreSQL-development X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1282589755-24313-0_" 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/1653 X-Sequence-Number: 168456 --ELM1282589755-24313-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Alvaro Herrera wrote: > Excerpts from Tom Lane's message of lun ago 23 12:40:32 -0400 2010: > > Alvaro Herrera writes: > > > Excerpts from Bruce Momjian's message of dom ago 22 12:51:47 -0400 2010: > > >> Do you have a suggestion? Reorder the items? > > > > > I'd add another para before that one saying that this value "also" > > > affects pg_clog truncation. I agree that putting pg_clog truncation as > > > the first item here is not an improvement. For most people, having > > > those pg_clog files there or not is going to be a wash, compared to data > > > size. > > > > I was going to suggest that the point about pg_clog should be in a > > separate paragraph *after* this one, since it seems like a secondary > > issue. But anyway, I agree with putting this para back as it was and > > talking about clog in a separate para. > > Sorry, yes, I was also thinking "after". I don't know what made me > write "before" but it wasn't clarity of thought. 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. Comments? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + --ELM1282589755-24313-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain Content-Disposition: inline; filename="/pgpatches/freeze" 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 freeze 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 freeze 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. --ELM1282589755-24313-0_--