Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 41934651072 for ; Tue, 1 Jul 2008 08:14:55 -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 84521-03-2 for ; Tue, 1 Jul 2008 08:14:36 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail01.enterprisedb.com (webmail.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id 2CF306517C1 for ; Tue, 1 Jul 2008 07:44:29 -0300 (ADT) thread-index: AcjbZ4wuUvvzFnUkTQm5uMjUEbcdCQ== Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 Received: from [80.222.70.18] ([80.222.70.18]) by mail01.enterprisedb.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 1 Jul 2008 06:45:15 -0400 Message-ID: <486A0A86.1080509@enterprisedb.com> Date: Tue, 01 Jul 2008 13:44:22 +0300 From: "Heikki Linnakangas" Organization: EnterpriseDB User-Agent: Mozilla-Thunderbird 2.0.0.14 (X11/20080509) MIME-Version: 1.0 To: "Simon Riggs" Cc: "Andrew Dunstan" , "Bruce Momjian" , "Dave Page" , "List pgsql-patches" Subject: Re: [HACKERS] odd output in restore mode References: <200806302213.m5UMDCW22128@momjian.us> <48696C3F.4060901@dunslane.net> <1214901548.3845.544.camel@ebony.site> In-Reply-To: <1214901548.3845.544.camel@ebony.site> Content-Type: text/plain; format=flowed; charset="UTF-8" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Jul 2008 10:45:15.0859 (UTC) FILETIME=[8C188230:01C8DB67] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/4 X-Sequence-Number: 6699 Simon Riggs wrote: > Patch implements > > * recommendation to use GnuWin32 cp on Windows > * provide "holdtime" delay, default 0 (on all platforms) > * default stays same on Windows="copy" to ensure people upgrading don't > get stung This seems pretty kludgey to me. I wouldn't want to install GnuWin32 utilities on a production system just for the "cp" command, and I don't know how I would tune holdtime properly for using "copy". And it seems risky to have defaults that are known to not work reliably. How about implementing a replacement function for "cp" ourselves? It seems pretty trivial to do. We could use that on Unixes as well, which would keep the differences between Win32 and other platforms smaller, and thus ensure the codepath gets more testing. (Sorry for jumping into the discussion so late, I didn't follow this thread earlier, and just read it now in the archives while looking at the patch.) -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com