Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id D5F8FB5DC01 for ; Wed, 21 Sep 2011 02:02:51 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 02045-02 for ; Wed, 21 Sep 2011 05:02:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by mail.postgresql.org (Postfix) with ESMTP id E6405B5DC00 for ; Wed, 21 Sep 2011 02:02:44 -0300 (ADT) Received: by qwb8 with SMTP id 8so3131731qwb.3 for ; Tue, 20 Sep 2011 22:02:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.100.83 with SMTP id x19mr145959qcn.199.1316581363944; Tue, 20 Sep 2011 22:02:43 -0700 (PDT) Received: by 10.229.38.133 with HTTP; Tue, 20 Sep 2011 22:02:43 -0700 (PDT) In-Reply-To: References: <1316524671.9044.12.camel@fsopti579.F-Secure.com> Date: Wed, 21 Sep 2011 07:02:43 +0200 Message-ID: Subject: Re: somewhat wrong archive_command example From: Magnus Hagander To: Fujii Masao Cc: Peter Eisentraut , pgsql-docs Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/59 X-Sequence-Number: 6980 On Wed, Sep 21, 2011 at 03:58, Fujii Masao wrote: > On Tue, Sep 20, 2011 at 10:34 PM, Magnus Hagander w= rote: >> On Tue, Sep 20, 2011 at 15:17, Peter Eisentraut wrote: >>> At >>> http://www.postgresql.org/docs/current/static/continuous-archiving.html >>> we say >>> >>> """ >>> Many people choose to use scripts to define their archive_command, so >>> that their postgresql.conf entry looks very simple: >>> >>> archive_command =3D 'local_backup_script.sh' >>> """ >>> >>> It seems to me, however, that even a simple archive_command like that >>> ought to contain at least %p, right? >> >> Should always need both %p and %f, no? > > Yes unless the script extracts the file name from the path given as %p. Do we actually guarantee that this will wok? I know our current implementation does, but does the contract in the API actually guarantee that we will not change this implementation? --=20 =A0Magnus Hagander =A0Me: http://www.hagander.net/ =A0Work: http://www.redpill-linpro.com/