Re: Sample archive_command is still problematic

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Sample archive_command is still problematic
Дата
Msg-id 53EBCCEA.3090604@gmx.net
обсуждение исходный текст
Ответ на Re: Sample archive_command is still problematic  ("MauMau" <maumau307@gmail.com>)
Ответы Re: Sample archive_command is still problematic  (Kevin Grittner <kgrittn@ymail.com>)
Re: Sample archive_command is still problematic  ("MauMau" <maumau307@gmail.com>)
Список pgsql-docs
On 8/11/14 6:23 PM, MauMau wrote:
> I submitted a patch a patch for this a few months ago, which is pg_copy
> listed in the current CF.  The patch also addresses the problem that the
> archived file can get lost after power failure because it is not flushed
> to disk.    The patch consists of a program called pg_copy which can be
> used instead of cp/copy, and a doc fix to suggest using mv.  I made it
> following the favorable suggestions from people.

I realize that there are about 128 different ways people set this up
(which is itself a problem), but it appears to me that a solution like
pg_copy only provides local copying, which implies the use of something
like NFS.  Which may be OK, but then we'd need to get into the details
of how to set up NFS properly for this.

Also, I think you can get local copy+fsync with dd.

The alternatives of doing remote copying inside archive_command are also
questionable if you have multiple standbys.

Basically, this whole interface is terrible.  Maybe it's time to phase
it out and start looking into pg_receivexlog.



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

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