Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1au68Y-00062t-UV for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Apr 2016 22:34:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1au68X-0001ez-7u for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Apr 2016 22:34:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1au67B-00009V-6o for pgsql-hackers@postgresql.org; Sat, 23 Apr 2016 22:33:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1au678-00040w-BX for pgsql-hackers@postgresql.org; Sat, 23 Apr 2016 22:33:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u3NMXF2b010892; Sat, 23 Apr 2016 18:33:15 -0400 From: Tom Lane To: Andrew Dunstan cc: Christian Ullrich , Michael Paquier , Petr Jelinek , Robert Haas , Magnus Hagander , PostgreSQL mailing lists Subject: Re: VS 2015 support in src/tools/msvc In-reply-to: <17239.1461448469@sss.pgh.pa.us> References: <5707AC9E.7070309@dunslane.net> <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> Comments: In-reply-to Tom Lane message dated "Sat, 23 Apr 2016 17:54:29 -0400" Date: Sat, 23 Apr 2016 18:33:15 -0400 Message-ID: <10891.1461450795@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) 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 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. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers