Sample archive_command is still problematic - Mailing list pgsql-docs

From Josh Berkus
Subject Sample archive_command is still problematic
Date
Msg-id 53E5603B.5040102@agliodbs.com
Whole thread Raw
Responses Re: Sample archive_command is still problematic  (Kevin Grittner <kgrittn@ymail.com>)
List pgsql-docs
All:

The example archive_command we give in the docs is this one:

archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p
/mnt/server/archivedir/%f'

This is a problematic recommendation.  If there's any reason why copying
the archive file gets interrupted (storage blip, for example), then the
command will fail and will continue to fail forever, ending archiving.

Is there some good reason why "test ! -f" was added to the sample?

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


pgsql-docs by date:

Previous
From: Fujii Masao
Date:
Subject: Re: pageinspect forks
Next
From: Kevin Grittner
Date:
Subject: Re: Sample archive_command is still problematic