From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | MauMau <maumau307(at)gmail(dot)com>, Kevin Grittner <kgrittn(at)ymail(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-docs(at)postgresql(dot)org |
Subject: | Re: Sample archive_command is still problematic |
Date: | 2014-08-13 20:39:06 |
Message-ID: | 53EBCCEA.3090604@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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.
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2014-08-13 21:23:54 | Re: Sample archive_command is still problematic |
Previous Message | Josh Berkus | 2014-08-13 18:16:44 | Re: Sample archive_command is still problematic |