Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMiCX-0000RO-3u for pgsql-committers@arkaria.postgresql.org; Tue, 04 Aug 2015 19:48:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZMiCW-0006lc-Lz for pgsql-committers@arkaria.postgresql.org; Tue, 04 Aug 2015 19:48:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZMiCV-0006fy-IF for pgsql-committers@postgresql.org; Tue, 04 Aug 2015 19:48:39 +0000 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZMiCS-0002G8-5u for pgsql-committers@postgresql.org; Tue, 04 Aug 2015 19:48:37 +0000 Received: from mfilter39-d.gandi.net (mfilter39-d.gandi.net [217.70.178.170]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id D4430172071; Tue, 4 Aug 2015 21:48:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter39-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter39-d.gandi.net (mfilter39-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id P5DRql8tDCSc; Tue, 4 Aug 2015 21:48:31 +0200 (CEST) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 9DFE4172067; Tue, 4 Aug 2015 21:48:30 +0200 (CEST) Message-ID: <55C1170D.9070909@dunslane.net> Date: Tue, 04 Aug 2015 15:48:29 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Michael Paquier , Heikki Linnakangas CC: Heikki Linnakangas , pgsql-committers@postgresql.org Subject: Re: pgsql: Fix pg_rewind when pg_xlog is a symlink. References: <55BF6EB3.2040905@iki.fi> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 08/03/2015 09:05 PM, Michael Paquier wrote: > On Mon, Aug 3, 2015 at 10:37 PM, Heikki Linnakangas wrote: >> That's only on master, though. The TAP tests don't run on Windows in 9.5 >> anyway. > Oops, yes I got mistaken by the commit on 9.5. > >> I guess the pg_rewind tests used to work, but we didn't really advertise or >> make it easy to run it, so I'm not sure it's worth it to try to maintain >> that. Then again, we might want to backpatch all the TAP-test changes to >> make them work on Windows to 9.5, now that they've gotten some testing in >> the buildfarm and seem to work. > Usually new features are not backpatched, and the support for MSVC is one IMO. I think we can be rather more liberal with testing regimes that we can core server and client code. I have not yet tested these things with MSVC, but I can tell you: a) some more changes will be required to allow the tests to run on mingw/msys b) the rewind tests are currently failing very badly on my mingw/msys test rig. I'll be posting about that separately before long > >>> On systems that don't support symbolic links, raises an exception. To >>> check for that, use eval: >>> >>> $symlink_exists = eval { symlink("",""); 1 }; >> >> I wonder if we should be testing for that, instead of $windows_os. > Yes, good point! The second platform referred as unsupported is RISC OS: > http://perldoc.perl.org/perlport.html#symlink > And Postgres can visibly work on it. It would be good to get for > instance a RaspPI on the buildfarm with it, there is a development > version. The statement that Windows doesn't support symlinks isn't actually true. AS Perl in Windows doesn't (or might not, - I don't know about all versions). The test above doesn't fail on Msys DTK perl, but symlink calls in perl don't work either, So I think we'd better stay with the current test, or add the test above to the current test. cheers andrew -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers