libpq win32-native errno fix - Mailing list pgsql-patches

From Dmitry Yurtaev
Subject libpq win32-native errno fix
Date
Msg-id 004701c10eaa$02561670$0107a8c0@SULACO
Whole thread Raw
Responses Re: libpq win32-native errno fix
Re: libpq win32-native errno fix
List pgsql-patches
i've spotted a following problem using DBD::Pg under win32. winsock
functions do not set errno, so some normal conditions are treated as
fatal errors. e.g. fetching large tuples fails, as at some point recv()
returns EWOULDBLOCK. here's a patch, which replaces errno with
WSAGetLastError(). i've tried to to affect non-win32 code.

/Dmitry



Attachment

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Clear out the reminants of EXTEND INDEX
Next
From: Bruce Momjian
Date:
Subject: Re: libpq win32-native errno fix