Re: confusing archive_command example

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josh Kupershmidt <schmiddy(at)gmail(dot)com>, pgsql-docs(at)postgresql(dot)org
Subject: Re: confusing archive_command example
Date: 2010-04-01 00:31:32
Message-ID: 201004010031.o310VW506970@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > His complaint was that .../%f looks like ../%f; is that a valid
> > concern?
>
> Well, it does look like it, I'm just not seeing an easy fix that makes
> that better. I think the original suggestion was to turn it into a
> concrete example by writing something like /mnt/archive/%f.
>
> > I have reverted the change. Also, should we be using test !
> > -e instead of -f?
>
> No opinion.

Well -e tests for any type of file, while -f is only for regular files.
In practice, there should only be regular files in the archive
directory. But because we are always super-cautious, I changed it to
-e.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Fujii Masao 2010-04-01 01:50:13 Re: Streaming replication document improvements
Previous Message Greg Sabino Mullane 2010-04-01 00:09:04 Re: confusing archive_command example