Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 473EE650EF4 for ; Tue, 1 Jul 2008 08:49:52 -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 25912-01-7 for ; Tue, 1 Jul 2008 08:49:24 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail137092.authsmtp.com (outmail137092.authsmtp.com [62.13.137.92]) by postgresql.org (Postfix) with ESMTP id B295A650F63 for ; Tue, 1 Jul 2008 08:45:11 -0300 (ADT) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt4.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m61BixGE070021; Tue, 1 Jul 2008 12:44:59 +0100 (BST) Received: from [192.168.0.3] (85-211-229-155.dyn.gotadsl.co.uk [85.211.229.155]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m61BimSv096324; Tue, 1 Jul 2008 12:44:48 +0100 (BST) Subject: Re: [HACKERS] odd output in restore mode From: Simon Riggs To: Heikki Linnakangas Cc: Andrew Dunstan , Bruce Momjian , Dave Page , List pgsql-patches In-Reply-To: <486A0A86.1080509@enterprisedb.com> References: <200806302213.m5UMDCW22128@momjian.us> <48696C3F.4060901@dunslane.net> <1214901548.3845.544.camel@ebony.site> <486A0A86.1080509@enterprisedb.com> Content-Type: text/plain Date: Tue, 01 Jul 2008 12:49:47 +0100 Message-Id: <1214912987.3845.584.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 1c089c29-4763-11dd-8155-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksacxtFaARbZ0xd HGQLW1xEUV97XWd/ bwIfZQBDYEtPQQdo WVZIR1dNFgBqBAMB SEMYU2srKmYAeHd2 ZkRmEHJYVUc0dBV9 SkcHF2QbYWBma30e URQMagtVdQZXfh9E a1h6AHAKZjZWKBg1 TUcABxkNFhVyExEd cSEkBnE/e30+Vjkw S1gFACk3AFFNRiN7 NRE9NlkGEQ4UNUk/ WQBh X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:1078/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/5 X-Sequence-Number: 6700 On Tue, 2008-07-01 at 13:44 +0300, Heikki Linnakangas wrote: > 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.) If you've heard complaints about any of this from users, I haven't. AFAIK we're doing this because it *might* cause a problem. Bear in mind that link is the preferred performance option, not copy. So AFAICS we're tuning a secondary option on one specific port, without it being a raised issue and in an area of code that will be superceded in the next release. So further embellishments would be a long way down my own priority list, putting it politely. Yet I have no objections to the suggestion overall; we have done that already for alter tablespace. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support