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

From Bruce Momjian
Subject Re: libpq win32-native errno fix
Date
Msg-id 200107201746.f6KHkA627595@candle.pha.pa.us
Whole thread Raw
In response to libpq win32-native errno fix  ("Dmitry Yurtaev" <dmitry@channel4.ru>)
List pgsql-patches
Thanks.  Patch applied.  I am waiting for another patch from Darko
Prenosil to apply in addition to yours.  This should fix our Win32
problems.


> 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, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Re: [JDBC] [PATCH] Cleanup of JDBC character encoding
Next
From: Martijn van Oosterhout
Date:
Subject: Re: New EXPLAIN ANALYZE statement