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 1fsSMQ-0005Ci-2J for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Aug 2018 12:35:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fsSMO-0005o2-BQ for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Aug 2018 12:35:40 +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 1fsSMO-0005nv-5T for pgsql-bugs@lists.postgresql.org; Wed, 22 Aug 2018 12:35:40 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fsSML-0007UG-Cw for pgsql-bugs@lists.postgresql.org; Wed, 22 Aug 2018 12:35:39 +0000 Received: from Davids-MacBook.local (unknown [165.117.235.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 64EC254682; Wed, 22 Aug 2018 12:35:34 +0000 (UTC) Subject: Re: BUG #15335: Documentation is wrong about archive_command and existing files To: Stephen Frost Cc: Jeff Janes , Phil Endecott , pgsql-bugs@lists.postgresql.org References: <1534611104496@dmwebmail.dmwebmail.chezphil.org> <8402fafa-32ad-9fcd-f616-cf67131dec40@pgmasters.net> <20180820132447.GM3326@tamriel.snowman.net> From: David Steele Message-ID: Date: Wed, 22 Aug 2018 08:35:33 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180820132447.GM3326@tamriel.snowman.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/20/18 9:24 AM, Stephen Frost wrote: > * David Steele (david@pgmasters.net) wrote: > >> We could at least list all the things that a good archive command should >> do and point out that the example in the docs doesn't do them and that >> it is intended *only* as an example. > > This sounds like a good idea to me, in general. I suggest we qualify > the command shown further and say it's only provided as an illustration > of how to set an archive_command and that it isn't an example. Perhaps > we should even remove the shell-script bits and instead just have: > > archive_command = 'archivecmd /mnt/server/archivedir/%f %p' +1 > > As long as we have something there that looks like valid shell script > and which doesn't obviously fail, people are likely going to continue to > use it. OK -- I'll work up a doc patch that lists the basic things an archive command should do and see where that leads us. Regards, -- -David david@pgmasters.net