Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 63DEC1337B48 for ; Tue, 26 Oct 2010 14:49:43 -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 82142-04 for ; Tue, 26 Oct 2010 17:49:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from glacier.frostconsultingllc.com (glacier.frostconsultingllc.com [69.36.227.170]) by mail.postgresql.org (Postfix) with ESMTP id 1C405133798E for ; Tue, 26 Oct 2010 14:49:35 -0300 (ADT) Received: from dsl081-245-111.sfo1.dsl.speakeasy.net ([64.81.245.111] helo=Sidney-Stratton.local) by glacier.frostconsultingllc.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1PAneM-00010N-SN; Tue, 26 Oct 2010 10:49:32 -0700 Message-ID: <4CC714AA.20204@agliodbs.com> Date: Tue, 26 Oct 2010 10:49:30 -0700 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Fujii Masao CC: pgsql-hackers@postgresql.org Subject: Re: Simplifying replication References: <201010220058.o9M0waa06053@momjian.us> <4CC0E465.4000700@agliodbs.com> <4CC0F10D.3000201@agliodbs.com> <4CC1C74E.8080409@agliodbs.com> <26273.1287768288@sss.pgh.pa.us> <4CC1CB0F.7050006@agliodbs.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.419 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FS_REPLICA=3.599, SARE_SPEC_REPLICA=0.72 X-Spam-Level: ** X-Archive-Number: 201010/1886 X-Sequence-Number: 172926 > What happens if max_wal_size is less than checkpoint_segments? > Currently a checkpoint tries to leave WAL files which were generated > from the prior ckpt start to current ckpt end. Because those WAL files > are required for crash recovery. But we should delete some of them > according to max_wal_size? The ideas is that max_wal_size would *replace* checkpoint_segments. The checkpoint_segments setting is baffling to most PG DBAs. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com