Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XHfKF-0007nu-Q2 for pgsql-docs@arkaria.postgresql.org; Wed, 13 Aug 2014 20:39:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XHfKE-0001Xd-JM for pgsql-docs@arkaria.postgresql.org; Wed, 13 Aug 2014 20:39:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XHfKC-0001XU-OC for pgsql-docs@postgresql.org; Wed, 13 Aug 2014 20:39:12 +0000 Received: from eisentraut.org ([85.214.91.16] helo=gattler.pezone.net) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XHfK9-0001Kd-Pz for pgsql-docs@postgresql.org; Wed, 13 Aug 2014 20:39:11 +0000 Received: from jesse.mybdev.com (unknown [204.145.120.11]) by gattler.pezone.net (Postfix) with ESMTPSA id 1443559000B; Wed, 13 Aug 2014 20:39:07 +0000 (UTC) Message-ID: <53EBCCEA.3090604@gmx.net> Date: Wed, 13 Aug 2014 16:39:06 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: MauMau , Kevin Grittner , Josh Berkus , pgsql-docs@postgresql.org Subject: Re: Sample archive_command is still problematic References: <53E5603B.5040102@agliodbs.com> <1407777686.41146.YahooMailNeo@web122306.mail.ne1.yahoo.com> <0F73426A2EA544878BCAC33BB989D671@maumau> In-Reply-To: <0F73426A2EA544878BCAC33BB989D671@maumau> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org 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. -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs