Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7D3FEB5DC15 for ; Wed, 21 Sep 2011 03:30:41 -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 55288-01 for ; Wed, 21 Sep 2011 06:30:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id DCDFAB5DC01 for ; Wed, 21 Sep 2011 03:30:33 -0300 (ADT) Received: by fxe4 with SMTP id 4so1293281fxe.19 for ; Tue, 20 Sep 2011 23:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Ia5UmCpREOVZPJaN5CAdAvK5iYftJgsw0NBK83wRKQ8=; b=RriccMlMvIiafVWqZYeh8vNP2ceiz0reVsIHYAfiFmRhSAPixcvtP9ho/piZfvcGxz HTXqKFvE+8bE28lyiiBDDv2TQLHsvoZHDBsTnjmgHpfhBLFI5Yu3UuFtLKmn6nKavVpS Zofad1Yd1PzWdJRUjsFzT3QxtrS2lGlgYpJao= MIME-Version: 1.0 Received: by 10.223.88.22 with SMTP id y22mr477251fal.144.1316586633119; Tue, 20 Sep 2011 23:30:33 -0700 (PDT) Received: by 10.152.11.35 with HTTP; Tue, 20 Sep 2011 23:30:33 -0700 (PDT) In-Reply-To: References: <1316524671.9044.12.camel@fsopti579.F-Secure.com> Date: Wed, 21 Sep 2011 15:30:33 +0900 Message-ID: Subject: Re: somewhat wrong archive_command example From: Fujii Masao To: Magnus Hagander Cc: Peter Eisentraut , pgsql-docs Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201109/60 X-Sequence-Number: 6981 On Wed, Sep 21, 2011 at 2:02 PM, Magnus Hagander wrote: > On Wed, Sep 21, 2011 at 03:58, Fujii Masao wrote: >> On Tue, Sep 20, 2011 at 10:34 PM, Magnus Hagander wrote: >>> 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 = '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? There is no such a guarantee. I agree with that %f should also be given at the same time. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center