Re: Fix Windows socket error checking for MinGW - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Fix Windows socket error checking for MinGW
Date
Msg-id 20130819144933.GC9264@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: Fix Windows socket error checking for MinGW  (Michael Cronenworth <mike@cchtml.com>)
List pgsql-hackers
Michael Cronenworth wrote:
> On 08/17/2013 12:16 AM, Noah Misch wrote:
> > 1. Redefine those constants for more (all?) compilers.
> > 2. Remove that block and put #ifdef around all usage of such constants in
> > frontend code, as you have done.
> > 3. Remove that block and make src/backend/port/win32/socket.c frontend-usable,
> > so frontend code can treat errno like backend code treats errno.
> > 
> > What do you recommend?
> 
> Option 1 is dangerous.

How so?

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Fix Windows socket error checking for MinGW
Next
From: Kevin Grittner
Date:
Subject: Re: Should we remove "not fast" promotion at all?