Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aVgHu-0002hG-L7 for pgsql-odbc@arkaria.postgresql.org; Tue, 16 Feb 2016 14:07:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aVgHu-0004P7-3p for pgsql-odbc@arkaria.postgresql.org; Tue, 16 Feb 2016 14:07:34 +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) (envelope-from ) id 1aVgHX-0003zQ-Ol for pgsql-odbc@postgresql.org; Tue, 16 Feb 2016 14:07:11 +0000 Received: from mail1.asahi-net.or.jp ([202.224.39.197]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aVgHT-0001Yv-31 for pgsql-odbc@postgresql.org; Tue, 16 Feb 2016 14:07:11 +0000 Received: from [192.168.1.3] (h216161.dynamic.ppp.asahi-net.or.jp [61.114.216.161]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id 427A4DFC8; Tue, 16 Feb 2016 23:07:00 +0900 (JST) Subject: Re: Degradation of performance when upgrade psqlodbc to 09.03.0400 To: Dang Minh Huong References: <016BF0E2-C52D-4D78-84C4-FB25BB04005C@gmail.com> <56B3B4A8.7040704@iki.fi> <7430C065-C285-4EC4-833A-640BBE845FB5@gmail.com> <1ECC4FD6-11B3-4D87-AED6-AB6B576BFF43@gmail.com> <27F26780-FF99-428F-AD59-496734F3CE7B@gmail.com> <56B91F81.7000703@dream.email.ne.jp> <56BA9A91.5070309@dream.email.ne.jp> <45A6CCC4-94FF-4599-9478-19A595E6B9E2@gmail.com> <56BB3A07.3080804@dream.email.ne.jp> <1EDD2A39-78FA-4C80-AC35-9C9FF658C94F@gmail.com> <56BC7EAB.80102@dream.email.ne.jp> <82081927-3E42-41A3-9B74-4608328A65EF@gmail.com> <7014C22C-EFBE-4C47-8CE0-B1C20DA3FF91@gmail.com> <56BEEFDD.8090402@dream.email.ne.jp> <42F59D35-518E-4DCB-BA37-A5F6A5B0EB9A@gmail.com> <890CB944-700D-45D6-91F5-844C6DD0E54C@aalto.fi> <41778DE9-954C-4663-876B-4FCC535882B9@gmail.com> <56C1C6D4.3030007@dream.email.ne.jp> <8588FA7D-74ED-4CD9-9E35-672DD884625E@gmail.com> Cc: Heikki Linnakangas , pgsql-odbc@postgresql.org From: "Inoue, Hiroshi" Message-ID: <56C32D05.3010500@dream.email.ne.jp> Date: Tue, 16 Feb 2016 23:07:01 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <8588FA7D-74ED-4CD9-9E35-672DD884625E@gmail.com> Content-Type: multipart/alternative; boundary="------------000706030509040706020302" 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 This is a multi-part message in MIME format. --------------000706030509040706020302 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi Dang, On 2016/02/16 12:40, Dang Minh Huong wrote: > Hi Inoue-san, > > I have tested some commits in revision 09.03.0100 and found that your > "revise MSDTC support" patch made SQLSetConnectAttr issue. > Can you simply explain how does your patch cause that issue? MSDTC support isn't directly related to the issue. Original mistake is I defined autocommit_public field as a member of ConnInfo. While revising CC_xxxx functions, I found it inappropriate to call SOCK_Constructor() (and CC_conninfo_init()) in CC_Constructor(). and I removed them from CC_Constructor(). However this leaves inconsistent status that autocommit_public is off but transact_status(internal autocommit status) is on.. SQLSetConnectAttr(.., SQL_AUTOCOMMIT, SQL_AUTOCOMMIT_OFF, ..) before SQLDriverConnect() does nothing and leaves transact_status on. regards, Hiroshi Inoue --------------000706030509040706020302 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hi Dang,

On 2016/02/16 12:40, Dang Minh Huong wrote:
Hi Inoue-san,

I have tested some commits in revision 09.03.0100 and found that your "revise MSDTC support" patch made SQLSetConnectAttr issue.
Can you simply explain how does your patch cause that issue?

MSDTC support isn't directly related to the issue.

Original mistake is I defined autocommit_public field as a member of ConnInfo.
While revising CC_xxxx functions, I found it inappropriate to call SOCK_Constructor() (and CC_conninfo_init())
 in CC_Constructor(). and I removed them from CC_Constructor(). However this leaves inconsistent status
that autocommit_public is off but transact_status(internal autocommit status) is on..
    SQLSetConnectAttr(.., SQL_AUTOCOMMIT, SQL_AUTOCOMMIT_OFF, ..) before SQLDriverConnect()
does nothing and leaves transact_status on.

regards,
Hiroshi Inoue
--------------000706030509040706020302--