Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 3B7AB632E89 for ; Thu, 11 Feb 2010 10:17:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 39745-07 for ; Thu, 11 Feb 2010 14:17:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail128141.authsmtp.com (outmail128141.authsmtp.com [62.13.128.141]) by mail.postgresql.org (Postfix) with ESMTP id 4CFEA6331C5 for ; Thu, 11 Feb 2010 10:17:27 -0400 (AST) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt8.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id o1BEHImJ009773; Thu, 11 Feb 2010 14:17:18 GMT Received: from [10.0.1.26] (74-92-138-153-WashingtonDC.hfc.comcastbusiness.net [74.92.138.153]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id o1BEHFFt086768; Thu, 11 Feb 2010 14:17:15 GMT Subject: Re: Re: [COMMITTERS] pgsql: Make standby server continuously retry restoring the next WAL From: Simon Riggs To: Heikki Linnakangas Cc: Dimitri Fontaine , Fujii Masao , PostgreSQL-development In-Reply-To: <4B740C6C.3010607@enterprisedb.com> References: <20100127152751.3B2047541B9@cvs.postgresql.org> <3f0b79eb1002092105r21e009d3v468496058ba04392@mail.gmail.com> <4B726120.80007@enterprisedb.com> <1265884657.7341.1192.camel@ebony> <4B73F678.8070109@enterprisedb.com> <1265891248.7341.1346.camel@ebony> <4B73FB99.4080403@enterprisedb.com> <1265893599.7341.1454.camel@ebony> <877hqjc2kk.fsf@hi-media-techno.com> <1265896250.7341.1627.camel@ebony> <4B740C6C.3010607@enterprisedb.com> Content-Type: text/plain Date: Thu, 11 Feb 2010 14:17:14 +0000 Message-Id: <1265897834.7341.1714.camel@ebony> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-Server-Quench: 2818f7c2-1718-11df-ab46-001185d377ca X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksachtFaQRba1xT HGQLWlREUVl7WGR/ agwfagFDa0hQXgZi TklMQU1XHAJ3AVJe B2xrKm8EMwVOfnl2 bQhlWnFdEkZydE4r RR1WCGwBZG99aWFL Bl0JJQdSbQNKfx5N bwR8U3ReMCtlM3Bw LC8aFBMcBw5qYB5Y EEk+BnU3ZGc3IhMG fCVKBTo0BElXDwA6 LBFuMUIVGkobIw0p PEE/VEh6exQVDBFf GVxKHTRdNhEbSjYx HEs7R0MFDDpHQCFT SgEoL1dODyxOEhVx ICMS X-Authentic-SMTP: 61633235383639.1000:706/Kp X-AuthFastPath: 255 X-Virus-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=-2.599 tagged_above=-10 required=5 tests=AWL=0.000, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/859 X-Sequence-Number: 157202 On Thu, 2010-02-11 at 15:55 +0200, Heikki Linnakangas wrote: > Simon Riggs wrote: > > One question then: how do we ensure that the archive does not grow too > > big? pg_standby cleans down the archive using %R. That function appears > > to not exist anymore. > > You can still use %R. Of course, plain 'cp' won't know what to do with > it, so a script will then be required. We should probably provide a > sample of that in the docs, or even a ready-made tool similar to > pg_standby but without the waiting. So we still need a script but it can't be pg_standby? Hmmm, OK... Might it not be simpler to add a parameter onto pg_standby? We send %s to tell pg_standby the standby_mode of the server which is calling it so it can decide how to act in each case. -- Simon Riggs www.2ndQuadrant.com