Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yiq4f-0004JK-S3 for pgsql-odbc@arkaria.postgresql.org; Thu, 16 Apr 2015 20:07:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yiq4f-0003Pv-AR for pgsql-odbc@arkaria.postgresql.org; Thu, 16 Apr 2015 20:07:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yie0x-0006Ok-OK for pgsql-odbc@postgresql.org; Thu, 16 Apr 2015 07:15:07 +0000 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Yie0q-0005Xq-0D for pgsql-odbc@postgresql.org; Thu, 16 Apr 2015 07:15:05 +0000 Received: by widdi4 with SMTP id di4so86290530wid.0 for ; Thu, 16 Apr 2015 00:14:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=+9zp7fBqAnwMDYbwZisEzYegfghwcl35korvrXF18uM=; b=OXkNnh51tTtslAqatTFE461iuPpsBBNLvuImXFwvYEnKWIGR45U9f8EWAJgIH/AYFJ oGyVTDhSInzbIkpQffLFFcN4RB0MwDJF3Iw+qRfWI4zriVjAf7cPm3cYr92VVYJezR+7 RIoAWcFYUhy9mrImm/LSo7Sx3JSQBZVtowFLdaZp6uZxsXL1c73f5ZQjWAqMmXimn3l2 6A1P+fiH+Iw9P6Y3Z+mWj/kL9fEGsvTkMwrGvnjYZaZ1ykZ4wSXoWWpH0uZhtlESILmr O7J+oByXm9Zg4u0KvpR5RZSUhJmorlkyvGLRgpsQ/InAEHoQa8oUJMm2pfZbuBWVS9Z5 5yLQ== X-Received: by 10.180.74.198 with SMTP id w6mr2415002wiv.69.1429168497213; Thu, 16 Apr 2015 00:14:57 -0700 (PDT) Received: from [192.168.1.99] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by mx.google.com with ESMTPSA id e2sm10289623wij.5.2015.04.16.00.14.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Apr 2015 00:14:56 -0700 (PDT) Message-ID: <552F616E.3080508@iki.fi> Date: Thu, 16 Apr 2015 10:14:54 +0300 From: Heikki Linnakangas Reply-To: hlinnaka@iki.fi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 MIME-Version: 1.0 To: "Vilches, Alejandro" , "'pgsql-odbc@postgresql.org'" Subject: Re: odbc vs. libpq performance References: <9CE034E149417949A58AA9A4FA7E1C5584A610A3@ORSMSX109.amr.corp.intel.com> <9CE034E149417949A58AA9A4FA7E1C5584A6A129@ORSMSX109.amr.corp.intel.com> In-Reply-To: <9CE034E149417949A58AA9A4FA7E1C5584A6A129@ORSMSX109.amr.corp.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.3 (--) 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 On 04/16/2015 03:30 AM, Vilches, Alejandro wrote: > I have a simple program that inserts data into a single table (see details below). When I have the program connect to the DB via ODBC, performance is significantly slower compared to when I have it connect via libpq. I was able to achieve ~1000 transactions per second using libpq, but only ~4 transactions per second using the ODBC driver. I'd suggest setting log_min_duration_statement = 0 in the server's config file. Then repeat the test and look at the log file to see where the time is spent. If that gives no clue, I'm happy to take a look, if you can reproduce it with a small test program and post it to a list. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc