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

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: (view raw, whole thread or download thread mbox)
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

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

In response to

pgsql-docs by date

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

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