Re: libpq WSACleanup is not needed - Mailing list pgsql-hackers

From James Mansion
Subject Re: libpq WSACleanup is not needed
Date
Msg-id 49741DDD.8080201@mansionfamily.plus.com
Whole thread Raw
In response to Re: libpq WSACleanup is not needed  (Andrew Chernow <ac@esilo.com>)
Responses Re: libpq WSACleanup is not needed  (Magnus Hagander <magnus@hagander.net>)
Re: libpq WSACleanup is not needed  (Andrew Chernow <ac@esilo.com>)
List pgsql-hackers
Andrew Chernow wrote:
> m$ docs indicate that wsastartup can't be called from dllmain :(
>
OK, fair cop.  Says it in the MSDN online version but not in the SDK 6.1 
version. :-(  Some helper(s)
must start threads I guess.

Re the counting and doing it on first/last socket - of course WSAStartup 
counts internally. Prsumably
its only slow when the count is actually going to zero?

Is there a need for a new API to control this - can't you just interpret 
another parameter keyword
in PQconnectdb (or the pgoptions string in PQsetdbLogin I guess)?  
(Having said that, how
do you control send and receive buffer sizes?  Presumably nagle is 
always disabled, but those
features could be controlled the same way?  Would presumably allow 
PGOPTIONS to be
parsed too, though docs 30.12 says that does runtime options for the 
server, though
PQconnectdb in 30.1 suggests that it might be parsed for the client 
connect too.  Maybe.).

James



pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Review: B-Tree emulation for GIN
Next
From: Jeff Davis
Date:
Subject: Re: [PATCHES] GIN improvements