Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 17B9564FD35; Mon, 28 Jul 2008 04:28:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 65341-04; Mon, 28 Jul 2008 04:28:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id 1FEBB64FD0E; Mon, 28 Jul 2008 04:28:13 -0300 (ADT) thread-index: Acjwg517mqU4pZRYSNG9JtMuw3bmMA== Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 Received: from [80.222.78.63] ([80.222.78.63]) by mail01.enterprisedb.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 28 Jul 2008 03:29:03 -0400 Message-ID: <488D7506.9000903@enterprisedb.com> Date: Mon, 28 Jul 2008 10:28:06 +0300 From: "Heikki Linnakangas" Organization: EnterpriseDB User-Agent: Mozilla-Thunderbird 2.0.0.14 (X11/20080509) MIME-Version: 1.0 To: "Andrew Dunstan" Cc: "Kevin Grittner" , "Simon Riggs" , "Bruce Momjian" , "Dave Page" , "PostgreSQL-development" , "List pgsql-patches" , "Martin Zaun" Subject: Re: [PATCHES] odd output in restore mode References: <200807011520.m61FKhZ20311@momjian.us> <48867904.9090001@sun.com> <1216810783.3894.602.camel@ebony.2ndQuadrant> <48877AC0.7070603@enterprisedb.com> <48873C7E.EE98.0025.0@wicourts.gov> <48879C1E.9090600@dunslane.net> In-Reply-To: <48879C1E.9090600@dunslane.net> Content-Type: text/plain; format=flowed; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 Jul 2008 07:29:03.0562 (UTC) FILETIME=[9C69CAA0:01C8F083] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/1273 X-Sequence-Number: 121533 Andrew Dunstan wrote: > Kevin Grittner wrote: >>>>> "Heikki Linnakangas" wrote: >>> We really need a more reliable way of detecting that a file has been >>> fully copied. >> >> In our scripts we handle this by copying to a temp directory on the >> same mount point as the archive directory and doing a mv to the >> archive location when the copy is successfully completed. I think >> that this even works on Windows. Could that just be documented as a >> strong recommendation for the archive script? > > Needs testing at least. If it does in fact work then we can just adjust > the docs and be done Yeah. > - or maybe provide a .bat file or perl script that > would work as na archive_command on Windows. We're not talking about archive_command. We're talking about the thing that copies files to the directory that pg_standby polls. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com