Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMFwK-00063e-JH for pgsql-committers@arkaria.postgresql.org; Mon, 03 Aug 2015 13:38:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZMFwK-0003v2-5P for pgsql-committers@arkaria.postgresql.org; Mon, 03 Aug 2015 13:38:04 +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 1ZMFwJ-0003sw-Ct for pgsql-committers@postgresql.org; Mon, 03 Aug 2015 13:38:03 +0000 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZMFwG-0000b0-L7 for pgsql-committers@postgresql.org; Mon, 03 Aug 2015 13:38:02 +0000 Received: by wicmv11 with SMTP id mv11so136134809wic.0 for ; Mon, 03 Aug 2015 06:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=1Gz2qcfAtKv6+MUDLM87yG1DJoYsvts893c5J6zoh5k=; b=V/TRTGoDcRTVw6X4kRHafuZuNfyI0yot8L9IFkymTPUmPnUJBflhesNjpHsQEcEpNF 5iG+INf7Qt075w14LK3mMAEL89EckGEnpgJuLqclIJO8al+Gg1kZBtGRoKxUyNjgtf1H mrCqXfUvO47mGNowGWHvi+OylndHNeQeACYMWwTSfyNO6UEfjQTgGqer/c6ofHUaLq5u BA5eDRh7rN8MZwrmU/07gurJZ87w2FW+VWKcTdIwwGP/hI9O7O98ptWTTsVBWjeL06jV pm7kSUejjRBR5WSUesjQ/lc/RztZVdXTFpPQZk68OlaxLl8E6o8mWgTkTzAZrcg9AB3w fX8g== X-Received: by 10.180.85.194 with SMTP id j2mr32852819wiz.11.1438609078609; Mon, 03 Aug 2015 06:37:58 -0700 (PDT) Received: from [192.168.1.105] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id bd9sm13645608wib.18.2015.08.03.06.37.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 06:37:57 -0700 (PDT) Message-ID: <55BF6EB3.2040905@iki.fi> Date: Mon, 03 Aug 2015 16:37:55 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Michael Paquier , Heikki Linnakangas CC: pgsql-committers@postgresql.org Subject: Re: pgsql: Fix pg_rewind when pg_xlog is a symlink. References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.3 (--) 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 03:54 PM, Michael Paquier wrote: > On Mon, Aug 3, 2015 at 9:34 PM, Heikki Linnakangas > wrote: >> Fix pg_rewind when pg_xlog is a symlink. >> >> pg_xlog is often a symlink, typically to a different filesystem. Don't >> get confused and comlain about by that, and just always pretend that it's a >> normal directory, even if it's really a symlink. >> >> Also add a test case for this. > > + symlink($master_xlogdir, "$test_master_datadir/pg_xlog") or die; > > This will die on Windows, hence I think that this test should be > skipped in this case. Sure, I did have this at the top: +if ($windows_os) +{ + plan skip_all => 'symlinks not supported on Windows'; + exit; +} +else +{ + plan tests => 4; +} That's only on master, though. The TAP tests don't run on Windows in 9.5 anyway. 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. BTW, I just noticed that the man page for perl's symlink says this: > 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. - Heikki -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers