Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 4DA596325BD for ; Thu, 1 Apr 2010 09:18:05 -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 06073-09 for ; Thu, 1 Apr 2010 12:17:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mail.postgresql.org (Postfix) with ESMTP id 923A4633E38 for ; Thu, 1 Apr 2010 09:17:54 -0300 (ADT) Received: from [75.236.174.227] (227.sub-75-236-174.myvzw.com [75.236.174.227]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MQLgi-1O7Ifg2S8S-00UKgF; Thu, 01 Apr 2010 14:17:44 +0200 Message-ID: <4BB48EE1.2050303@2ndquadrant.com> Date: Thu, 01 Apr 2010 08:17:37 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Peter Eisentraut CC: Bruce Momjian , Tom Lane , Josh Kupershmidt , pgsql-docs@postgresql.org Subject: Re: confusing archive_command example References: <201003312351.o2VNpFd25456@momjian.us> <1270099524.10696.0.camel@vanquo.pezone.net> In-Reply-To: <1270099524.10696.0.camel@vanquo.pezone.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/vgV+vAJOYbVvSyjzoytG7m5r738R9y9UAWxB q2PwLm9Ns+inyixCfFoDKoqdc2181soORH87mEPDK/UPxts+GF WABtEa7Ryemkh7R1YdVf2e3QdtKXUZ+ X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201004/2 X-Sequence-Number: 5401 Peter Eisentraut wrote: > On ons, 2010-03-31 at 19:51 -0400, Bruce Momjian wrote: > >> Also, should we be using test ! -e instead of -f? >> > > test -e is not portable. > Right; there are plenty of shells where "test -e" isn't implemented, I believe some Solaris and/or HP-UX systems have that issue. The original "test -f" was already the best example to give here. As for the update Josh suggested, there are two issues here. The PITR documentation at http://developer.postgresql.org/pgdocs/postgres/continuous-archiving.html starts with this example: archive_command = 'cp -i %p /mnt/server/archivedir/%f