Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WIebH-0007Pf-1k for pgsql-committers@arkaria.postgresql.org; Wed, 26 Feb 2014 13:32:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WIebG-0001bD-He for pgsql-committers@arkaria.postgresql.org; Wed, 26 Feb 2014 13:32:38 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WIebF-0001b4-FL for pgsql-committers@postgresql.org; Wed, 26 Feb 2014 13:32:37 +0000 Received: from outmail148099.authsmtp.net ([62.13.148.99]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WIeb7-0004yn-RD for pgsql-committers@postgresql.org; Wed, 26 Feb 2014 13:32:36 +0000 Received: from mail-c235.authsmtp.com (mail-c235.authsmtp.com [62.13.128.235]) by punt18.authsmtp.com (8.14.2/8.14.2/) with ESMTP id s1QDWRwm086706 for ; Wed, 26 Feb 2014 13:32:27 GMT Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id s1QDWPoo027043 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Wed, 26 Feb 2014 13:32:25 GMT Received: by mail-wi0-f171.google.com with SMTP id cc10so5878571wib.4 for ; Wed, 26 Feb 2014 05:32:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=o3T8cK/khsIlCGw9L5ITd4pAvwnWvotPupE1LTh5fI0=; b=bYx45Q1aQMKlFST7n2D87xJdEqxzN5vn7+vRHmx36lM3D9K1U4RuHFUnKE5SEzwoVS FjrcmDZa/7TtrUAIlkaj6V1HxjcCZk/YdqAb8gKWNmmRfIpvndF1wjlP57h4kYtT7fpF 5L28KHltxmV8A/1A7YWoAJRr1NC0dS8/cnH1CzLtQTPUfLVuoC4+kpHhwxHuyqz5alpG 8zn/XtxfJ+GW4jmBvXrnzutvsHSmHbn8+l1AUCimZT4Pr47J5khAGsVAm57dZQBrZ2rc ugJF6ALDKpFOZjD6u26/M4/hDh10juRuBf76LKZjByFpLAJvyAkYbD/TceucvhNY6WPi 0AQA== MIME-Version: 1.0 X-Received: by 10.195.12.102 with SMTP id ep6mr1328055wjd.76.1393421545519; Wed, 26 Feb 2014 05:32:25 -0800 (PST) Received: by 10.227.2.4 with HTTP; Wed, 26 Feb 2014 05:32:25 -0800 (PST) In-Reply-To: References: Date: Wed, 26 Feb 2014 13:32:25 +0000 Message-ID: Subject: Re: pgsql: Allow time delayed standbys and recovery From: Simon Riggs To: Thom Brown Cc: pgsql-committers Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Server-Quench: 6e0fe8c1-9eea-11e3-b802-002590a15da7 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MOFUSTAAU OUFfK1tPLFAGXnlB XCVPDBYBExwtRzw3 PERTaxorNxhRXQVr VFhIQVhRFg9qBFID BhcAWhxsdQREZn93 ZFlnVndEXQo5dCcJ JS4LSm0EYmdkay4Z VkVeOQUBcFUfdkxE d1kqASIQYGRSZWcy T1dpemhpZ2gOcC0M Hw0EckQoTBRDLRUb YjUjIQkCJ3YwDz08 NAUieBY1GEIWLQ0u MF4sEV4VNxYDBwEW BF1EBiNTNkJJTiwn RRlXVkkAHSdMKQAA X-Authentic-SMTP: 61633235383639.1023:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 209.85.212.171/587 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 26 February 2014 13:07, Thom Brown wrote: > On 19 December 2013 19:33, Simon Riggs wrote: >> >> On 19 December 2013 19:19, Thom Brown wrote: >> > On 12 December 2013 10:56, Simon Riggs wrote: >> >> Allow time delayed standbys and recovery >> >> >> >> Set min_recovery_apply_delay to force a delay in recovery apply for >> >> commit and >> >> restore point WAL records. Other records are replayed immediately. >> >> Delay is >> >> measured between WAL record time and local standby time. >> >> >> >> Robert Haas, Fabr=EDzio de Royes Mello and Simon Riggs >> >> Detailed review by Mitsumasa Kondo >> > >> > Could a note be added about the additional disk space requirements for >> > WAL on the standby? If one is delaying replay, WAL files created over >> > the delayed period will build up in pg_xlog on the standby until >> > they're consumed upon replay, so considerations about storing those >> > additional files will need to be made. It may otherwise trip up >> > anyone who, say, delays replay by 24 hours in a busy production >> > environment, and finds they have run out of disk space and no longer >> > have a valid standby. >> >> Thanks Thom, good point. I will add a note to the docs. > > > Just a reminder that this note hasn't been added to the docs yet. Please cut a doc patch and I'll apply. --=20 Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --=20 Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers