Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fEZ9V-0008F4-2J for pgsql-general@arkaria.postgresql.org; Fri, 04 May 2018 11:45:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fEZ9T-0007HH-LT for pgsql-general@arkaria.postgresql.org; Fri, 04 May 2018 11:45:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fEZ9S-00071d-Ag for pgsql-general@lists.postgresql.org; Fri, 04 May 2018 11:45:26 +0000 Received: from mail71.extendcp.co.uk ([79.170.40.71]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fEZ9A-0006wF-TL for pgsql-general@lists.postgresql.org; Fri, 04 May 2018 11:45:24 +0000 Received: from uor-shared.ntegra.net ([134.225.2.129] helo=[10.1.5.58]) by mail71.extendcp.co.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA:128) (Exim 4.90_1) id 1fEZ96-000QUz-DV; Fri, 04 May 2018 12:45:04 +0100 Subject: Re: Can we run pg_basebackup master is still working normally (selects, updates, deleted, etc) To: pgsql-general@lists.postgresql.org References: <06d59e01-72bc-12b5-5c1b-be1039175a83@tracktrans.com> <6e9764f7-f6d1-0597-ecf7-c78d66d84007@2ndquadrant.com> From: Adrian Heath Message-ID: Date: Fri, 4 May 2018 12:45:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <6e9764f7-f6d1-0597-ecf7-c78d66d84007@2ndquadrant.com> Content-Type: multipart/alternative; boundary="------------2B4FFCA360CFCA3495028171" Content-Language: en-GB X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.705, bases: 2018/05/04 05:35:00 #8335953; khse: 2014-01-23 rollback X-KLMS-AntiVirus-Status: Clean, skipped List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------2B4FFCA360CFCA3495028171 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 04/05/18 12:07, Peter Eisentraut wrote: > On 5/4/18 06:41, Adrian Heath wrote: >> The system is used 24/7. Can we run pg_basebackup while the master is >> still receiving updates without worrying about physical file corruptions >> in the generated archive file? > Yes, as long as you follow the instructions about saving the WAL > generated during the backup and replaying it on the newly created standby. > Thank you. --------------2B4FFCA360CFCA3495028171 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit On 04/05/18 12:07, Peter Eisentraut wrote:
On 5/4/18 06:41, Adrian Heath wrote:
The system is used 24/7. Can we run pg_basebackup while the master is 
still receiving updates without worrying about physical file corruptions 
in the generated archive file?
Yes, as long as you follow the instructions about saving the WAL
generated during the backup and replaying it on the newly created standby.

Thank you.

--------------2B4FFCA360CFCA3495028171--