Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1auAhQ-0008R0-IH for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Apr 2016 03:27:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1auAhP-00073B-J9 for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Apr 2016 03:27:07 +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_2) (envelope-from ) id 1auAg2-0005YN-Px for pgsql-hackers@postgresql.org; Sun, 24 Apr 2016 03:25:42 +0000 Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1auAfu-0000Yw-Vn for pgsql-hackers@postgresql.org; Sun, 24 Apr 2016 03:25:41 +0000 Received: from mfilter21-d.gandi.net (mfilter21-d.gandi.net [217.70.178.149]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id B7BCEFB88B; Sun, 24 Apr 2016 05:25:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter21-d.gandi.net Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter21-d.gandi.net (mfilter21-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id s_60mR_teura; Sun, 24 Apr 2016 05:25:30 +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 relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 14620FB883; Sun, 24 Apr 2016 05:25:27 +0200 (CEST) Subject: Re: VS 2015 support in src/tools/msvc To: Tom Lane References: <5707C80F.9050709@chrullrich.net> <5707D7DC.2030508@dunslane.net> <5707E074.4030102@chrullrich.net> <0B77CFCB-0F90-4CAB-8509-7EB391C06D59@chrullrich.net> <570A6A14.6040303@dunslane.net> <570A9FCE.5040201@chrullrich.net> <570ABFA0.4090403@2ndquadrant.com> <57192C59.9090903@dunslane.net> <571BD6D4.9@dunslane.net> <571BED3C.5070! ! 209@dunslane.net> <17239.1461448469@sss.pgh.pa.us> <10891.1461450795@sss.pgh.pa.us> Cc: Christian Ullrich , Michael Paquier , Petr Jelinek , Robert Haas , Magnus Hagander , PostgreSQL mailing lists From: Andrew Dunstan Message-ID: <571C3CA6.5070803@dunslane.net> Date: Sat, 23 Apr 2016 23:25:26 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <10891.1461450795@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; 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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 04/23/2016 06:33 PM, Tom Lane wrote: > I wrote: >> Andrew Dunstan writes: >>> On 04/23/2016 05:30 PM, Christian Ullrich wrote: >>>> In this case, I would prefer this: >>>> >>>> #ifdef WIN32_ONLY_COMPILER >>>> -typedef int pid_t; >>>> +typedef intptr_t pid_t; >>>> #endif >>> That's a change that will have a pretty wide effect. Everything up to >>> now has been pretty low risk, but this worries me rather more. Maybe >>> it's safe, but I'd like to hear others' comments. >> Yeah, it makes me a bit nervous too. > One other thought: even if this is safe for HEAD, I think we could > *not* back-patch it into 9.5, because it would amount to an ABI > break on Windows anywhere that pid_t is used in globally visible > structs or function signatures. (Maybe there are no such places, > but I doubt it.) So we'd need to go with the messy-cast solution > for 9.5. It's not that messy. I'm inclined just to make minimal changed to pg_basebackup.c and be done with it. I don't think a compiler warning is worth doing more for. cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers