Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VO1ak-0006Nc-4M for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Sep 2013 08:34:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VO1aj-00082G-Ku for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Sep 2013 08:34:01 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VO1ai-00082A-Vr for pgsql-bugs@postgresql.org; Mon, 23 Sep 2013 08:34:01 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VO1ae-0006aj-JX for pgsql-bugs@postgresql.org; Mon, 23 Sep 2013 08:33:59 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id B1CEE28119; Mon, 23 Sep 2013 01:33:55 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id AEB02402BB; Mon, 23 Sep 2013 01:33:55 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id AAF5212000B; Mon, 23 Sep 2013 01:40:48 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Mon, 23 Sep 2013 01:40:47 -0700 (PDT) Message-ID: <523FFCEF.4040302@vmware.com> Date: Mon, 23 Sep 2013 11:33:51 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: stuart@stuartbishop.net CC: pgsql-bugs@postgresql.org Subject: Re: BUG #8450: pg_basebackup blocks until WAL archiving successful References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.3 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 13.09.2013 15:13, stuart@stuartbishop.net wrote: > pg_basebackup blocks until all necessary WAL files have been archived by > archive_command. This can take a few minutes under normal circumstances, and > indefinitely if archive_command is failing. > > I would like to be able to disable this check, as I am streaming backups to > a system that can time out my connection if it does not receive new data for > a short while. This makes unattended backups problematic. I can see why you'd want that, but it seems equally problematic to let pg_basebackup return, when the WAL files haven't been archived yet and you therefore don't in fact have valid, restorable backup yet. Have you considered using the --xlog-method=stream option, to include the WAL files in the backup? That will make your backups somewhat larger, as the WAL files are included, but in that mode pg_basebackup won't wait for the archival and the backup will be restorable even if archive_command is failing. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs