From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Daniel Díaz <diaz.carrete@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: Re: SSL slow when using libpq.dll
Date: Wed, 16 Apr 2014 21:15:56 +0900
Message-ID: <534E747C.10801@tpf.co.jp> (raw)
In-Reply-To: <CAEdN0yieMWx2keDb-9H_SWQgMmVENLhVuDbbm7YxMzTZgB6Z-g@mail.gmail.com>
References: <CAEdN0yieMWx2keDb-9H_SWQgMmVENLhVuDbbm7YxMzTZgB6Z-g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
(2014/04/15 5:06), Daniel Díaz wrote:
> Hi,
>
> I'm using psqlodbc on Windows to perform a query that returns on the
> order of 1 million rows.
>
> I have noticed that, when the DSN is configured to use SSL, the query
> runs very slow, like three times slower.
>
> However, if I delete libpq.dll from the psqlodbc installation directory,
> the slowdown in the SSL-secured query is much less (only about 10-20%
> compared to the unsecured query).
>
> I have tried several of the latest versions of the driver, and the same
> thing happens in all.
>
> Several doubts:
>
> - I surmise that the absence of libpq forces the driver to use Windows'
> sspi service to handle the SSL, is that correct?
Yes.
> - Is it normal that using sspi is that much faster?
I can't think of the reason.
> - Is there a way, other than deleting libpq.dll, to force the use of
> sspi on Windows when using the compiled distribution of the driver?
No.
> - Can deleting libpq.dll cause problems?
Some authentication methods may be unavailable.
regards,
Hiroshi Inoue
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: inoue@tpf.co.jp, diaz.carrete@gmail.com
Subject: Re: SSL slow when using libpq.dll
In-Reply-To: <534E747C.10801@tpf.co.jp>
References: <CAEdN0yieMWx2keDb-9H_SWQgMmVENLhVuDbbm7YxMzTZgB6Z-g@mail.gmail.com> <534E747C.10801@tpf.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox