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 1etPbL-0002px-LN for pgsql-admin@arkaria.postgresql.org; Wed, 07 Mar 2018 03:18:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1etPbK-0002bi-10 for pgsql-admin@arkaria.postgresql.org; Wed, 07 Mar 2018 03:18:46 +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 1etPbJ-0002bY-Q2 for pgsql-admin@lists.postgresql.org; Wed, 07 Mar 2018 03:18:45 +0000 Received: from cat-porwal-prod-mail1.catalyst.net.nz ([2404:130:4080::4]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etPbE-0002fg-B4 for pgsql-admin@lists.postgresql.org; Wed, 07 Mar 2018 03:18:44 +0000 Authentication-Results: auth=pass smtp.auth=mark.kirkwood@catalyst.net.nz smtp.mailfrom=mark.kirkwood@catalyst.net.nz Received: from [IPv6:2406:e001:eea:1:c43f:8b13:32aa:682f] (unknown [IPv6:2406:e001:eea:1:c43f:8b13:32aa:682f]) (Authenticated sender: mark.kirkwood@catalyst.net.nz) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTPSA id 1C35080DB6; Wed, 7 Mar 2018 16:18:31 +1300 (NZDT) Subject: Re: Reliable WAL file shipping over unreliable network To: David Steele , Stephen Frost , Rui DeSousa Cc: pgsql-admin@lists.postgresql.org References: <988AB20C-9FDE-4197-BF3F-C54D80C2ED78@elevated-dev.com> <20180302180911.GO2416@tamriel.snowman.net> <20180304150640.GR2416@tamriel.snowman.net> <3D9CC2FB-57E1-45B2-B5FC-1B214F5DB068@icloud.com> <20180305111521.GV2416@tamriel.snowman.net> <20180305150218.GY2416@tamriel.snowman.net> <15F9D550-9909-40B3-A384-417AFCD745DF@icloud.com> <20180306190004.GQ2416@tamriel.snowman.net> <68099b52-3909-07e3-04ea-b5ba600b1767@pgmasters.net> From: Mark Kirkwood Message-ID: <0bff7871-1f88-65a6-ac77-4bbba8f89889@catalyst.net.nz> Date: Wed, 7 Mar 2018 16:18:30 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <68099b52-3909-07e3-04ea-b5ba600b1767@pgmasters.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/03/18 08:31, David Steele wrote: > On 3/6/18 2:00 PM, Stephen Frost wrote: >> * Rui DeSousa (rui.desousa@icloud.com) wrote: >>>> On Mar 5, 2018, at 10:02 AM, Stephen Frost wrote: >>>> It doesn’t- but please don't encourage partial solutions which have ver clear issues. >>> Then problem is there are no good base utilities that is useful with archive_command; unless you’re writing directly to an NFS mount or a tape library. Even Barman recommends rsync with the archive_command; if you are unable to use pg_receivexlog solution. There are countless Postgres documentation out there that recommends use of rsync with the archive_command. >>> >>> Here a solution that will fsync() file on the other end. >> I'd encourage you to consider submitting this to a commitfest to get >> feedback on it, as a proper patch to add such a utlity to PG and which >> we could use in our documentation instead of saying "cp", which is >> pretty terrible. > +1. I believe there's been talk of a pgcopy utility before but it never > went anywhere. I think it would be worth it just to have a decent > example in the docs. > +1. I think if there is a strong feeling that the current docs are suggesting things that shouldn't actually be done, then we should provide an alternative in the distribution itself. Re Pgbackrest (and other backup tools that various Postgres companies have written) - while these may be great (Pgbackrest looks pretty good for instance), they don't come with the Postgres package itself, and our docs suggest something else. Hence discussion threads like this one! The added (new) issue that there may be some unusual bug with rsync + quotas and ZFS on BSD (at least) gives a bit more weight to this idea. regards Mark