Re: somewhat wrong archive_command example

Поиск
Список
Период
Сортировка
От Euler Taveira
Тема Re: somewhat wrong archive_command example
Дата
Msg-id 502EA9C2.2030100@timbira.com
обсуждение исходный текст
Ответ на Re: somewhat wrong archive_command example  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-docs
On 17-08-2012 16:51, Peter Eisentraut wrote:
> Btw., is anyone else concerned about using plain cp for this?  If the cp fails
> half-way, it leaves a partial file around, but subsequent file existence
> checks will find the file OK and skip it.
>
I've already faced this problem (with cp and scp).

> I have occasionally used some combination of mktemp + cp + mv, which seems to
> work around this problem.
>
That's what rsync uses, no? Your suggestion or rsync seem safe options to me.
But if you insist on an academic example using cp, at least comment that it
can fail in some cases.


--
   Euler Taveira de Oliveira - Timbira       http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento


В списке pgsql-docs по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Would like to contribute a section to docs for 9.3. Where to start?
Следующее
От: Chris Travers
Дата:
Сообщение: Re: Would like to contribute a section to docs for 9.3. Where to start?