Sample archive_command is still problematic

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Sample archive_command is still problematic
Дата
Msg-id 53E5603B.5040102@agliodbs.com
обсуждение исходный текст
Ответы Re: Sample archive_command is still problematic  (Kevin Grittner <kgrittn@ymail.com>)
Список 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 по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: pageinspect forks
Следующее
От: Kevin Grittner
Дата:
Сообщение: Re: Sample archive_command is still problematic