Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1au5Wz-0004dz-Ns for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Apr 2016 21:56:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1au5Wz-0006xG-3t for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Apr 2016 21:56:01 +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 1au5Ve-0005PZ-C9 for pgsql-hackers@postgresql.org; Sat, 23 Apr 2016 21:54:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1au5Vb-0002Fa-TA for pgsql-hackers@postgresql.org; Sat, 23 Apr 2016 21:54:37 +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 u3NLsTDb017240; Sat, 23 Apr 2016 17:54:29 -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: <571BED3C.5070209@dunslane.net> 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> Comments: In-reply-to Andrew Dunstan message dated "Sat, 23 Apr 2016 17:46:36 -0400" Date: Sat, 23 Apr 2016 17:54:29 -0400 Message-ID: <17239.1461448469@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 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. We know that most of the code is agnostic as to the width of pid_t, because it works on Unixen where pid_t is 64bit. But I'm less sure about whether the Windows-specific parts are equally flexible. On the other hand, wouldn't you expect to get compiler warnings for any code that does get affected? The main hazard would be incorrect printf format flags (cf 994f11257 for a recent example), and I'd certainly expect any C compiler worth its salt to whine about inconsistencies there. 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