Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d688N-0002kw-To for pgsql-interfaces@arkaria.postgresql.org; Thu, 04 May 2017 04:12:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d688N-0005jg-1X for pgsql-interfaces@arkaria.postgresql.org; Thu, 04 May 2017 04:12:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d688M-0005jP-K6 for pgsql-interfaces@postgresql.org; Thu, 04 May 2017 04:12:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d688J-0000D8-Ea for pgsql-interfaces@postgresql.org; Thu, 04 May 2017 04:12:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v444CnaU018801; Thu, 4 May 2017 00:12:49 -0400 From: Tom Lane To: Reza Taheri cc: "pgsql-interfaces@postgresql.org" Subject: Re: PostgreSQL, and ODBC statement handles In-reply-to: References: Comments: In-reply-to Reza Taheri message dated "Wed, 03 May 2017 23:41:33 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18799.1493871169.1@sss.pgh.pa.us> Date: Thu, 04 May 2017 00:12:49 -0400 Message-ID: <18800.1493871169@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-interfaces Precedence: bulk Sender: pgsql-interfaces-owner@postgresql.org Reza Taheri writes: > I am running a benchmark (TPCx-V) with a single process on the client > system handing all the load. Each connection to the server is in a > separate thread with its own connection to PGSQL, and its own connection > handle and statement handle. I am facing a contention problem with ODBC > on the client side. strace and perf top show we are serializing over > what appears to be accesses to the ODBC statement handle. Contention > goes away if I use multiple processes instead of multiple threads within > a process. No idea about the answer to this, but I suggest that you might find help on the pgsql-odbc list, if no one answers here. regards, tom lane -- Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces