pg.ddx.io  pgsql-patches@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: Dave Page <dpage@pgadmin.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: odd output in restore mode
Date: Tue, 13 May 2008 08:26:35 -0400
Message-ID: <482988FB.5070307@dunslane.net> (raw)
In-Reply-To: <482982DD.6060901@dunslane.net>
References: <4828AF1D.7060405@dunslane.net>
	<1210630440.29684.249.camel@ebony.site>
	<4828CB9D.7070102@dunslane.net>
	<1210635473.29684.268.camel@ebony.site>
	<4828EBCB.6010004@dunslane.net>
	<6489.1210642738@sss.pgh.pa.us>
	<937d27e10805130042m35584e2fk79dc3490173d3bd4@mail.gmail.com>
	<1210667576.29684.283.camel@ebony.site>
	<482982DD.6060901@dunslane.net>


I wrote:
>
> However, we should probably make the behaviour switchable. If the 
> archive_command populating the archive_directory were rsync, for 
> example, this problem should not occur, because it copies to a temp 
> file, and then renames it, so we should never see an incomplete file 
> even though rsync also apparently preallocates space.
>
>

Another and probably simpler thing to try would be the GnuWin32 version 
of cp. If we can verify that it behaves itself, we should probably 
recommend it for use in archive_command instead of the native Windows copy.

I'm still not sure how to construct a test, though.

cheers

andrew



view thread (59+ messages)  latest in thread

Message-ID: <482988FB.5070307@dunslane.net>
Permalink:  ../482988FB.5070307@dunslane.net/
Also on:    postgresql.org/message-id/482988FB.5070307@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-patches@postgresql.org
  Cc: andrew@dunslane.net, simon@2ndquadrant.com, dpage@pgadmin.org, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
  Subject: Re: odd output in restore mode
  In-Reply-To: <482988FB.5070307@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox