Re: [INTERFACES] Win32 interface - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: [INTERFACES] Win32 interface
Date
Msg-id 17113.936629687@sss.pgh.pa.us
Whole thread Raw
In response to RE: [INTERFACES] Win32 interface  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
List pgsql-interfaces
"Hiroshi Inoue" <Inoue@tpf.co.jp> writes:
>> ISTM there was some reason it wouldn't work, like maybe you can
>> only call WSAStartup once per program, but I don't recall for sure.

> We can call WSAStartup() more than once. However,there must be a
> call to WSACleanup() for every successful call to WSAStartup()
> made by a task. Only the final WSACleanup() for that task does the
> actual cleanup.
>
> The simplest way may be to call WSAStartup() while connecting and 
> to call WSACleanup() while finishing(including error cases).

That would be an easy change.  Are these functions fast enough that
calling them for every connect/disconnect cycle would be tolerable?
        regards, tom lane


pgsql-interfaces by date:

Previous
From: Jelle Ruttenberg
Date:
Subject: Is there a psqlODBC for the Mac?
Next
From: Magnus Hagander
Date:
Subject: RE: [INTERFACES] Win32 interface