Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1er6q4-0002JR-M9 for pgsql-admin@arkaria.postgresql.org; Wed, 28 Feb 2018 18:52:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1er6q3-0006DK-MP for pgsql-admin@arkaria.postgresql.org; Wed, 28 Feb 2018 18:52:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1er6q3-0006DB-Ak for pgsql-admin@lists.postgresql.org; Wed, 28 Feb 2018 18:52:27 +0000 Received: from www.ipv6.roaringpenguin.com ([2607:f748:1200:fb:70:38:112:54] helo=colo3.roaringpenguin.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1er6q0-0007Zr-Fu for pgsql-admin@lists.postgresql.org; Wed, 28 Feb 2018 18:52:26 +0000 Received: from vanadium.roaringpenguin.com ([192.168.10.23]) by colo3.roaringpenguin.com (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id w1SIqMnY023421 for ; Wed, 28 Feb 2018 13:52:22 -0500 Received: from hydrogen.roaringpenguin.com (dfs@hydrogen.roaringpenguin.com [192.168.10.1]) by vanadium.roaringpenguin.com (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id w1SIqLgG026642 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 28 Feb 2018 13:52:21 -0500 Date: Wed, 28 Feb 2018 13:52:20 -0500 From: Dianne Skoll Cc: pgsql-admin@lists.postgresql.org Subject: Re: Reliable WAL file shipping over unreliable network Message-ID: <20180228135220.1cd46347@hydrogen.roaringpenguin.com> In-Reply-To: <33220469-5BB2-4A40-8F56-8F4F392C95B3@icloud.com> References: <400AC9CD-1E43-422C-A689-70BDBAFF231E@elevated-dev.com> <37C5A42B-4CDD-4F01-8F1E-1B185C1819B9@icloud.com> <20180228132620.2c882f84@hydrogen.roaringpenguin.com> <33220469-5BB2-4A40-8F56-8F4F392C95B3@icloud.com> Organization: Roaring Penguin Software Inc. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: CanIt (www . roaringpenguin . com) X-Scanned-By: MIMEDefang 2.80 on 192.168.10.23 X-Spam-Score: undef - relay 192.168.10.23 marked with skip_spam_scan X-CanIt-Geo: No geolocation information available for 192.168.10.23 X-CanItPRO-Stream: outgoing (inherits from default) X-CanIt-Archive-Cluster: SQVyZJxqklY5buiWXYCN4T/BjiM X-CanIt-Archived-As: base/20180228 / 01VgiQmLu DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=roaringpenguin.com; h= date:from:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=canit; bh=drYDTpYjNbIXJEr5MzWcKBnbiF9saz5KmnbSGy9oCjk=; b=aTUmbrjJjk40 68xQs9Sb/DKJxZ7mTMW9YRmdyoIhLhCMEFTp9yOzMzxuHxnttPsTQhcND4+VzYUc LWo5TyAHJed96Z318clV5VlS8LUyUE56SuEJ9+nLZkqDZMlUowpJ/PrgKgsaETvw jkO6E07NTeWY7F0LqugbCuWVfFQVHwgMKcN+ozmk1XSZxFCjUipySsE4MUqpOnCj SqqqMKA5otFNOYktPGGhfa2l8irJdjLqFQkMWGgU3G4lLFlYEK3tvu6X16SQxi6O BPfyf6A2DZ1jn8RYa3O/gEjnVeXJpF0Oh/tTE9H/kzkEdJF/aCpU4U68BNcDfcYb QEXOju0wUQ== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, 28 Feb 2018 13:49:33 -0500 Rui DeSousa wrote: > Really? I think you really need to think about it. You are dealing > with a race condition. Not at all, assuming rsync is being called by PostgreSQL's archive_command. > You are dealing with a race condition involving filesystem metadata. Nope. Not true. What are the things that are racing? If you rsync data to make a base backup, then yes, use -c... but not because of any race condition. Instead, it's because of the coarse filesystem timestamp granularity. Regards, Dianne.