pg.ddx.io pgsql-odbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
SSL slow when using libpq.dll 2+ messages / 2 participants [nested] [flat]
* SSL slow when using libpq.dll @ 2014-04-14 20:06 Daniel Díaz <diaz.carrete@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: Daniel Díaz @ 2014-04-14 20:06 UTC (permalink / raw) To: pgsql-odbc 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? - Is it normal that using sspi is that much faster? - 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? - Can deleting libpq.dll cause problems? Thanks in advance, Daniel Díaz ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: SSL slow when using libpq.dll @ 2014-04-16 12:15 Hiroshi Inoue <inoue@tpf.co.jp> parent: Daniel Díaz <diaz.carrete@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Hiroshi Inoue @ 2014-04-16 12:15 UTC (permalink / raw) To: Daniel Díaz <diaz.carrete@gmail.com>; pgsql-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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-04-16 12:15 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2014-04-14 20:06 SSL slow when using libpq.dll Daniel Díaz <diaz.carrete@gmail.com> 2014-04-16 12:15 ` Hiroshi Inoue <inoue@tpf.co.jp>
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