Re: [GENERAL] Querying libpq compile time options - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: [GENERAL] Querying libpq compile time options
Date
Msg-id 20060513085526.GI12955@svana.org
Whole thread Raw
In response to Re: [GENERAL] Querying libpq compile time options  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [GENERAL] Querying libpq compile time options
List pgsql-hackers
On Fri, May 12, 2006 at 08:38:07PM -0400, Bruce Momjian wrote:
> Is this like detecting of libpq is SSL-enabled?  I see PQgetssl().  Do
> we need to add a libpq function to return true/false for threading?
> Slony requires a threaded libpq, so it could do the test to prevent
> wrong configurations.  It would be nice to enabled threading by default,
> but it is like SSL in that not all operating systems support it.

PQgetssl() doesn't tell you if SSL is supported, it tells you if the
*current connection* is using OpenSSL, which is similar but not the
same.

There is AFAIK no way to tell if SSL support is compiled in. Part of
the patch I posted for GnuTLS support answered this question also
(PQgettlsinfo()).

Have a ncie day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: Thomas Hallgren
Date:
Subject: Re: Inheritance, Primary Keys and Foreign Keys
Next
From: Martijn van Oosterhout
Date:
Subject: Re: DH_check return value test correct?