Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WaOlG-0006Rm-OF for pgsql-odbc@arkaria.postgresql.org; Wed, 16 Apr 2014 12:16:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WaOlG-0003OA-6I for pgsql-odbc@arkaria.postgresql.org; Wed, 16 Apr 2014 12:16:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WaOlE-0003Mm-Q8 for pgsql-odbc@postgresql.org; Wed, 16 Apr 2014 12:16:16 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WaOlA-0001lT-Q9 for pgsql-odbc@postgresql.org; Wed, 16 Apr 2014 12:16:16 +0000 Received: (qmail 14674 invoked by uid 512); 16 Apr 2014 12:16:07 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 16 Apr 2014 12:16:07 -0000 Received: from unknown (HELO ?192.168.1.4?) (183.76.63.174) by sd.tpf.co.jp with SMTP; 16 Apr 2014 12:16:07 -0000 Message-ID: <534E747C.10801@tpf.co.jp> Date: Wed, 16 Apr 2014 21:15:56 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: =?UTF-8?B?RGFuaWVsIETDrWF6?= , pgsql-odbc@postgresql.org Subject: Re: SSL slow when using libpq.dll References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org (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