pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Christian Ullrich <chris@chrullrich.net>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Petr Jelinek <petr@2ndquadrant.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: VS 2015 support in src/tools/msvc
Date: Sat, 23 Apr 2016 23:25:26 -0400
Message-ID: <571C3CA6.5070803@dunslane.net> (raw)
In-Reply-To: <10891.1461450795@sss.pgh.pa.us>
References: <CAB7nPqTTcRGbDxS_RA4CWn1B_KRsvN+FTpct0mTp3v3gRWQ70g@mail.gmail.com>
	<5707C80F.9050709@chrullrich.net>
	<5707D7DC.2030508@dunslane.net>
	<5707E074.4030102@chrullrich.net>
	<CAB7nPqSYAxCX+p0D0Qpqv6D4uLb2fmGcpUeKRxMyom5cAziuzg@mail.gmail.com>
	<CAB7nPqSOPynjV7ZC9wghkvwTpDPj7U=py7AoczzguTmv1kmh+g@mail.gmail.com>
	<0B77CFCB-0F90-4CAB-8509-7EB391C06D59@chrullrich.net>
	<570A6A14.6040303@dunslane.net>
	<570A9FCE.5040201@chrullrich.net>
	<570ABFA0.4090403@2ndquadrant.com>
	<CAB7nPqRek6M6HKpNXiNHx0J+rzC0XUbuZ5EMGvHSxLuZsebtyg@mail.gmail.com>
	<CAB7nPqRNwNXQ6C_1kODE5kN0WQUqLuWtPdLD4rn5nGmJUiibLw@mail.gmail.com>
	<57192C59.9090903@dunslane.net>
	<AM2PR06MB069012E632FC3C8D1FC8AD6CD46E0@AM2PR06MB0690.eurprd06.prod.outlook.com>
	<CAB7nPqRfbNJC9m56zdDV3=ZSfg6VZG6t3aHHiKnS3PFOPrweVQ@mail.gmail.com>
	<571BD6D4.9@dunslane.net>
	<f9857fa2-0e86-f188-f23a-f182a4127f52@chrullrich.net>
	<571BED3C.5070! ! 209@dunslane.net>
	<17239.1461448469@sss.pgh.pa.us>
	<10891.1461450795@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>



On 04/23/2016 06:33 PM, Tom Lane wrote:
> I wrote:
>> Andrew Dunstan <andrew@dunslane.net> 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



view thread (134+ messages)  latest in thread

Message-ID: <571C3CA6.5070803@dunslane.net>
Permalink:  ../571C3CA6.5070803@dunslane.net/
Also on:    postgresql.org/message-id/571C3CA6.5070803@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: andrew@dunslane.net, tgl@sss.pgh.pa.us, chris@chrullrich.net, michael.paquier@gmail.com, petr@2ndquadrant.com, robertmhaas@gmail.com, magnus@hagander.net
  Subject: Re: VS 2015 support in src/tools/msvc
  In-Reply-To: <571C3CA6.5070803@dunslane.net>
  References: <CAB7nPqTTcRGbDxS_RA4CWn1B_KRsvN+FTpct0mTp3v3gRWQ70g@mail.gmail.com> <5707C80F.9050709@chrullrich.net> <5707D7DC.2030508@dunslane.net> <5707E074.4030102@chrullrich.net> <CAB7nPqSYAxCX+p0D0Qpqv6D4uLb2fmGcpUeKRxMyom5cAziuzg@mail.gmail.com> <CAB7nPqSOPynjV7ZC9wghkvwTpDPj7U=py7AoczzguTmv1kmh+g@mail.gmail.com> <0B77CFCB-0F90-4CAB-8509-7EB391C06D59@chrullrich.net> <570A6A14.6040303@dunslane.net> <570A9FCE.5040201@chrullrich.net> <570ABFA0.4090403@2ndquadrant.com> <CAB7nPqRek6M6HKpNXiNHx0J+rzC0XUbuZ5EMGvHSxLuZsebtyg@mail.gmail.com> <CAB7nPqRNwNXQ6C_1kODE5kN0WQUqLuWtPdLD4rn5nGmJUiibLw@mail.gmail.com> <57192C59.9090903@dunslane.net> <AM2PR06MB069012E632FC3C8D1FC8AD6CD46E0@AM2PR06MB0690.eurprd06.prod.outlook.com> <CAB7nPqRfbNJC9m56zdDV3=ZSfg6VZG6t3aHHiKnS3PFOPrweVQ@mail.gmail.com> <571BD6D4.9@dunslane.net> <f9857fa2-0e86-f188-f23a-f182a4127f52@chrullrich.net> <17239.1461448469@sss.pgh.pa.us> <10891.1461450795@sss.pgh.pa.us> <571C3CA6.5070803@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox