Josh Kupershmidt wrote:
> 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 && cp %p ... %f'
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
Description: text/x-diff (1.6 KB)
In response to
pgsql-docs by date
|Next:||From: Tom Lane||Date: 2010-03-31 23:44:15|
|Subject: Re: confusing archive_command example |
|Previous:||From: Heikki Linnakangas||Date: 2010-03-31 20:39:09|
|Subject: Re: Streaming replication document improvements|