Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZLbBt-0004m2-42 for pgsql-odbc@arkaria.postgresql.org; Sat, 01 Aug 2015 18:07:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZLbBs-00055q-50 for pgsql-odbc@arkaria.postgresql.org; Sat, 01 Aug 2015 18:07:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZLbBV-0004gl-Ol for pgsql-odbc@postgresql.org; Sat, 01 Aug 2015 18:07:01 +0000 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZLbBS-00018q-4l for pgsql-odbc@postgresql.org; Sat, 01 Aug 2015 18:07:00 +0000 Received: by wibxm9 with SMTP id xm9so71701684wib.0 for ; Sat, 01 Aug 2015 11:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=OuJaKuP3ttW78da6+Wokp4DvE7AwIdlOLqQZmT/Hxls=; b=CoCdUImQpuPAO7FXdBc+PBx0wPNwX/iVeroGdgBd3imM9+7eudvKPsJ6QJgQtRdlPr jS6gAVzQmL+sBZ5LqvFZ61FdLWbTquztU+QlP2zODzE8epxlSzbPb/hftHcsxq9cYVno RujSp9/wtTkRoclVSNXAhPPXL9UF/40dHuyWRD9pDVAd2JkPFHB2VrOHprku0U1nZPPD RtKXipXY8vnlt75PiXmXnMyJmHveQVm3I8x5xy+kJdYZslrvpbosMzJqjNSH68wyHgcp gXa+nCNLe8XALvW5+B8z6fzw8bR1zm5ZhaQVd4elZdoXiHUPvCZ+qs/7nadQMmM0jK0K e7dg== X-Received: by 10.194.158.34 with SMTP id wr2mr18262157wjb.23.1438452416483; Sat, 01 Aug 2015 11:06:56 -0700 (PDT) Received: from [192.168.1.105] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id iy4sm4200634wic.24.2015.08.01.11.06.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Aug 2015 11:06:55 -0700 (PDT) Message-ID: <55BD0ABE.5010800@iki.fi> Date: Sat, 01 Aug 2015 21:06:54 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.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> <552F616E.3080508@iki.fi> <9CE034E149417949A58AA9A4FA7E1C5584AC9707@ORSMSX109.amr.corp.intel.com> <9CE034E149417949A58AA9A4FA7E1C5584AF0A28@ORSMSX109.amr.corp.intel.com> In-Reply-To: <9CE034E149417949A58AA9A4FA7E1C5584AF0A28@ORSMSX109.amr.corp.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.4 (--) 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 07/31/2015 02:33 AM, Vilches, Alejandro wrote: > I've continued looking into this and I discovered something: I > figured out how to successfully set the SQL_ATTR_AUTOCOMMIT attribute > to off. If you set it prior to establishing the connection, this > setting is ignored and it defaults to on. If you set it after > establishing the connection, then it does recognize the setting and > it works as specified. > > The ODBC documentation specifies that this attribute can be set > either before or after establishing the connection. If it's not > accepting the setting before establishing the connection, is this an > issue in the PostgreSQL ODBC driver? A-ha! Yes, that's a bug in the driver. In fact, it was fixed back in January: http://www.postgresql.org/message-id/BY1PR0401MB143087AD121D0251C00E5045A85B0@BY1PR0401MB1430.namprd04.prod.outlook.com That fix will be included in the next release. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc