Skip site navigation (1) Skip section navigation (2)

Re: confusing archive_command example

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: confusing archive_command example
Date: 2010-03-31 23:39:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docs
Josh Kupershmidt wrote:
> Hi,
> On the page:
> an example archive_command of:
> archive_command = 'cp -i %p /mnt/server/archivedir/%f </dev/null'
> is given. Then, a few lines later, an example archive command of:
> archive_command = 'test ! -f .../%f && cp %p .../%f'
> is given. I think this second command would be more clear if it used
> "/mnt/server/archivedir/" instead of "...", to tie in with the
> previous archive_command. It took me a minute to figure out that the
> three dots were supposed to be an ellipsis instead of a typo for the
> parent directory "..".

I agree our use of cp -i </dev/null is a little too fancy not to be
explained in the docs, so I have done so with the attached, applied

As far as "...", those are used to show only the important changes in
the string, which I think is the right approach, but I did change the
line so the dots are not right up against slashes:

	archive_command = 'test ! -f ... %f &amp;&amp; cp %p ... %f'

  Bruce Momjian  <bruce(at)momjian(dot)us>

Attachment: /rtmp/diff
Description: text/x-diff (1.6 KB)

In response to


pgsql-docs by date

Next:From: Tom LaneDate: 2010-03-31 23:44:15
Subject: Re: confusing archive_command example
Previous:From: Heikki LinnakangasDate: 2010-03-31 20:39:09
Subject: Re: Streaming replication document improvements

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group