Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B98CD1337B56 for ; Tue, 26 Oct 2010 17:05:40 -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 93794-02 for ; Tue, 26 Oct 2010 20:05:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148161.authsmtp.com (outmail148161.authsmtp.com [62.13.148.161]) by mail.postgresql.org (Postfix) with ESMTP id 357131336DB6 for ; Tue, 26 Oct 2010 17:05:33 -0300 (ADT) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt6.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id o9QK54uQ087039; Tue, 26 Oct 2010 21:05:04 +0100 (BST) Received: from [192.168.0.5] ([81.5.146.37]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id o9QK51eH085688; Tue, 26 Oct 2010 21:05:01 +0100 (BST) Subject: Re: Simplifying replication From: Simon Riggs To: Robert Haas Cc: Greg Stark , Josh Berkus , Bruce Momjian , pgsql-hackers@postgresql.org In-Reply-To: References: <201010220022.o9M0M8Q29438@momjian.us> <4CC0DEDE.7060707@agliodbs.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 26 Oct 2010 13:27:29 +0100 Message-ID: <1288096049.1587.253.camel@ebony> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Server-Quench: 5153c136-e13c-11df-ab46-001185d377ca X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksacxtFagNbYlpF HGQLWlREUlx7WWZ/ awgfZQRDZ1RPWwN0 U09WR1pVCwUmXhVg fRsfB2FyfwBAcHY+ bERnWz5eXUF5Jkd+ RFMBFG5VeGZhPDYC ARJccR5UcAJLdhoR aVd4ByJDAzANdhEY NiQQEgoKCH1kKSFN RgADPFMUTg4REyY4 RhsLATQoGyWB X-Authentic-SMTP: 61633235383639.1000:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.962 tagged_above=-5 required=5 tests=BAYES_00=-1.9, DATE_IN_PAST_06_12=1.543, FS_REPLICA=3.599, RCVD_IN_DNSWL_NONE=-0.0001, SARE_SPEC_REPLICA=0.72 X-Spam-Level: *** X-Archive-Number: 201010/1905 X-Sequence-Number: 172945 On Thu, 2010-10-21 at 20:57 -0400, Robert Haas wrote: > Very true. But the lack of a -1 setting for wal_keep_segments means > that if you would like to take a backup without archiving, you must > set wal_keep_segments to a value greater than or equal to the rate at > which you generate WAL segments multiplied by the time it takes you to > run a backup. If that doesn't qualify as requiring arcane knowledge, > I'm mystified as to what ever could. People are missing the point here: You have to put the WAL files *somewhere* while you do the base backup. PostgreSQL can't itself work out where that is, nor can it work out ahead of time how big it will need to be, since it is up to you how you do your base backup. Setting a parameter to -1 doesn't make the problem go away, it just pretends and hopes it doesn't exist, but screws you badly if you do hit the wall. My view is that is irresponsible, even if I share people's wish that the problem did not exist. -- Simon Riggs http://www.2ndQuadrant.com/books/ PostgreSQL Development, 24x7 Support, Training and Services