Re: libpq win32-native errno fix

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Dmitry Yurtaev <dmitry(at)channel4(dot)ru>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: libpq win32-native errno fix
Date: 2001-07-20 17:46:10
Message-ID: 200107201746.f6KHkA627595@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)org)

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

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-07-21 00:31:02 pg_hba.conf caching
Previous Message Tom Lane 2001-07-20 17:39:34 Re: New EXPLAIN ANALYZE statement