Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7D10E6348D7 for ; Wed, 31 Mar 2010 21:31:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 57123-03-2 for ; Thu, 1 Apr 2010 00:31:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 15115634792 for ; Wed, 31 Mar 2010 21:31:31 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o310VW506970; Wed, 31 Mar 2010 20:31:32 -0400 (EDT) From: Bruce Momjian Message-Id: <201004010031.o310VW506970@momjian.us> Subject: Re: confusing archive_command example In-Reply-To: <1251.1270080183@sss.pgh.pa.us> To: Tom Lane Date: Wed, 31 Mar 2010 20:31:32 -0400 (EDT) CC: Josh Kupershmidt , pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/31 X-Sequence-Number: 5396 Tom Lane wrote: > Bruce Momjian writes: > > His complaint was that .../%f looks like ../%f; is that a valid > > concern? > > Well, it does look like it, I'm just not seeing an easy fix that makes > that better. I think the original suggestion was to turn it into a > concrete example by writing something like /mnt/archive/%f. > > > I have reverted the change. Also, should we be using test ! > > -e instead of -f? > > No opinion. Well -e tests for any type of file, while -f is only for regular files. In practice, there should only be regular files in the archive directory. But because we are always super-cautious, I changed it to -e. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com