Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D26F69F9F7B for ; Tue, 5 Dec 2006 12:38:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 53197-01 for ; Tue, 5 Dec 2006 12:38:42 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.illumen.com (unknown [64.207.29.137]) by postgresql.org (Postfix) with ESMTP id 9AB439FA37A for ; Tue, 5 Dec 2006 12:38:42 -0400 (AST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: Re: psqlodbc-8.2.200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Tue, 5 Dec 2006 09:38:40 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ODBC] psqlodbc-8.2.200 Thread-Index: AccYZdngGgy08vyAQu6Ma3GhuPXAWAAJY4+A From: "Benjamin Krajmalnik" To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/9 X-Sequence-Number: 8456 Running latest release of PostgreSQL ODBC Driver (8.02.0200). =20 Does the ODBC driver for Windows use connection pooling? =20 I have a Windows application which is using the driver. I have connection pooling enabled, and the application notifies the driver to use connection pooling (per the developer). =20 I saw a huge disparity when running the queries (a stored procedure call) via psql locally and via the odbc driver (in this case, I am referring to the statement duration as logged by postgresql). The call being made is a "select * from sp_name(parameters)". I have about an 8:1 performance degradation in the statement duration when called via ODBC compared to directly in psql (as reported by the postgres log file). =20 I have not tried running the query through pgAdmin to see what execution speed I get. However, when I turned connection loggin on, I noticed that every single call to the stored procedure is creating a new connection (so it appears it is not honoring the connection pooling, which I believe results in quite a bit of overhead for each statement being called). TIA, =20 Benjamin