Re: Sample archive_command is still problematic - Mailing list pgsql-docs

From Peter Eisentraut
Subject Re: Sample archive_command is still problematic
Date
Msg-id 53EBCCEA.3090604@gmx.net
Whole thread Raw
In response to Re: Sample archive_command is still problematic  ("MauMau" <maumau307@gmail.com>)
Responses Re: Sample archive_command is still problematic  (Kevin Grittner <kgrittn@ymail.com>)
Re: Sample archive_command is still problematic  ("MauMau" <maumau307@gmail.com>)
List 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 by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Sample archive_command is still problematic
Next
From: Kevin Grittner
Date:
Subject: Re: Sample archive_command is still problematic