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 1er6Qy-0000Y5-Kw for pgsql-admin@arkaria.postgresql.org; Wed, 28 Feb 2018 18:26:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1er6Qx-0005SX-JH for pgsql-admin@arkaria.postgresql.org; Wed, 28 Feb 2018 18:26:31 +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 1er6Qw-0005KY-Vg for pgsql-admin@lists.postgresql.org; Wed, 28 Feb 2018 18:26:31 +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 1er6Qr-0006zk-DL for pgsql-admin@lists.postgresql.org; Wed, 28 Feb 2018 18:26:29 +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 w1SIQKVM016139 for ; Wed, 28 Feb 2018 13:26:21 -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 w1SIQKMW010169 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 28 Feb 2018 13:26:20 -0500 Date: Wed, 28 Feb 2018 13:26:20 -0500 From: Dianne Skoll To: pgsql-admin@lists.postgresql.org Subject: Re: Reliable WAL file shipping over unreliable network Message-ID: <20180228132620.2c882f84@hydrogen.roaringpenguin.com> In-Reply-To: <37C5A42B-4CDD-4F01-8F1E-1B185C1819B9@icloud.com> References: <400AC9CD-1E43-422C-A689-70BDBAFF231E@elevated-dev.com> <37C5A42B-4CDD-4F01-8F1E-1B185C1819B9@icloud.com> Organization: Roaring Penguin Software Inc. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 / 01VgiqkKE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=roaringpenguin.com; h= date:from:to:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=canit; bh=n5NhiEYt+Q4p8RB+SeZtywL1WzaSG+SL5yBR4+5h52U=; b=a8HBB6+FCVHI kbegZHu+0T8XsQNnLQHbFMx9VPT+wZXMTGtqHSjz1ZJath24Q9iI6/yVay9MhIqA L0qN6u55Be9WpK2NWJca+Pfag7JXOBNAMVlpXgXv/ewi76hwiWsozpXnsR/GTv9Q ffAQVdT9ottpb+OOUf0g936m4gTWA9mk5Pr8OIIisCwqG0SpWnVVq0+xtb6jqh23 8i//YK5MLdTxzqpjct/Ackv20FMRK5yXyIw64KtHdidSZ0VSNWGdOksYd4x1rK// LN8uXnJR4xOF+P07QYhlgY7c0DNiEz2FCVQ2ONlZvyS0UURpg94VO2H6s+C/0vPR ZfeHBnLT/A== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, 28 Feb 2018 13:15:48 -0500 Rui DeSousa wrote: > Sure it does=E2=80=A6 what happens if the archive server gets full? There= is > a situation that can fool rsync into thinking it was successfully > transferred as rsync only relies on filesystem metadata to verify the > file is different. That's incorrect. The original transfer will fail and rsync will remove the temporary file. It doesn't rename the file to the final destination until and unless the transfer is successful. "-c" is only used for files that might change multiple times per second; since most file systems have only 1-second granualarity in file timestamps, you can't rely on a file being identical if the size and timestamps are the same. > The =E2=80=9C-c=E2=80=9D option will validate the file using a checksum a= nd not just > rely on just filesystem metadata. That's incorrect. "-c" applies only when rsync looks at existing files to see if they differ. It does not affect what happens when rsync actually copies the file data over; that's always verified with a checksum. Regards, Dianne.