Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aVo4h-0001i4-RM for pgsql-odbc@arkaria.postgresql.org; Tue, 16 Feb 2016 22:26:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aVo4g-0004Lb-Dt for pgsql-odbc@arkaria.postgresql.org; Tue, 16 Feb 2016 22:26:26 +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 1aVo4J-0003wt-MZ for pgsql-odbc@postgresql.org; Tue, 16 Feb 2016 22:26:03 +0000 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aVo4C-00033v-GI for pgsql-odbc@postgresql.org; Tue, 16 Feb 2016 22:26:02 +0000 Received: by mail-pf0-x235.google.com with SMTP id q63so112314090pfb.0 for ; Tue, 16 Feb 2016 14:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+sLK1nV+zzurdV0CQg6EkHRkgfafdBFb4QObOHcgD2M=; b=xv/d+58vY2L0cHAof2cu/B+lKUySl4gNXdUhxYHtSKlvr5kYkhlTgh36Il3CFXTGlx i/AWPpZmNHEI+eeCIIdNI0pcPi1Qb+FBnW5iK8+de7zx2xMYa9eIiI/oBoxcTGHdcwNn KJTek7iwEC9XIZz067tniHjkQkiauDTL3f2SPzYpTct2bD2xwGCo80DMH3Q5RgI+Epo9 Uk8mK7VPrPWWl6IRQ7Lc2A3lhSE6gjWJbzeuoIxdV09yX1/yComMngXVdu5El1GJ5VsS 1+Htkdru7gJhzWNVAPeRXVffvpxMdJIprJpN4w7hW2I4QEU64TO2vEUdQ8/YjHhGnD2P p3wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=+sLK1nV+zzurdV0CQg6EkHRkgfafdBFb4QObOHcgD2M=; b=T59ZfQ4WJoO+0zukyGwXUwPpPoZsnpKkDikubnlNWdypxXFlYLVO/hEILJkoJO+1hD FAJ+gP9kHOQvvNBt2vP1pmYagpUadpQJgTz1aF1wEihQYj8Z4MOmPRHJLeHGl7uaXRwR WOmhKoHtMDOYqKSr4Fc7J4WC3NcNSfL761AIN5QOHAUnvu7xnfo4Bc1qegik9enN5EXJ 7PLoLG9KW70SQ/D0yr394B8Ebfoart8k6AEuxXTFnGJdEI3Akz3KMfWucfdAtKU6tZp8 UytsRATjflLl4G5wOHOsP56cakvISzs7QQRA6VGFyS322FdXtFDm9FS1Sh3sBQxVGbKn bQBQ== X-Gm-Message-State: AG10YOSJLg5i4+fZSACE6NtQGg/d7LzIcb0pPWzrQRJrFiJtkVTH5unjr2dhqEXaIDiWIQ== X-Received: by 10.98.14.79 with SMTP id w76mr34585804pfi.1.1455661555340; Tue, 16 Feb 2016 14:25:55 -0800 (PST) Received: from [10.95.187.207] (s845069.xgsspn.imtp.tachikawa.spmode.ne.jp. [49.96.45.69]) by smtp.gmail.com with ESMTPSA id l62sm48025309pfj.7.2016.02.16.14.25.53 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 16 Feb 2016 14:25:53 -0800 (PST) Content-Type: multipart/alternative; boundary=Apple-Mail-EF77718B-5E84-45DD-AD0B-98DAF3F26F19 Mime-Version: 1.0 (1.0) Subject: Re: Degradation of performance when upgrade psqlodbc to 09.03.0400 From: Dang Minh Huong X-Mailer: iPhone Mail (13D15) In-Reply-To: <56C32D05.3010500@dream.email.ne.jp> Date: Wed, 17 Feb 2016 07:25:51 +0900 Cc: Heikki Linnakangas , pgsql-odbc@postgresql.org Content-Transfer-Encoding: 7bit Message-Id: 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> <56C32D05.3010500@dream.email.ne.jp> To: "Inoue, Hiroshi" 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 --Apple-Mail-EF77718B-5E84-45DD-AD0B-98DAF3F26F19 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi Inoue-san, Many thanks for your support and detail of explaination. I understood and would like to close this topic. Thanks and best regards, bocap > Hi Dang, >=20 >> On 2016/02/16 12:40, Dang Minh Huong wrote: >> Hi Inoue-san, >>=20 >> I have tested some commits in revision 09.03.0100 and found that your "re= vise MSDTC support" patch made SQLSetConnectAttr issue. >> Can you simply explain how does your patch cause that issue? >=20 > MSDTC support isn't directly related to the issue. >=20 > Original mistake is I defined autocommit_public field as a member of ConnI= nfo. > While revising CC_xxxx functions, I found it inappropriate to call SOCK_Co= nstructor() (and CC_conninfo_init()) > in CC_Constructor(). and I removed them from CC_Constructor(). However th= is leaves inconsistent status > that autocommit_public is off but transact_status(internal autocommit stat= us) is on..=20 > SQLSetConnectAttr(.., SQL_AUTOCOMMIT, SQL_AUTOCOMMIT_OFF, ..) before S= QLDriverConnect() > does nothing and leaves transact_status on. >=20 > regards, > Hiroshi Inoue --Apple-Mail-EF77718B-5E84-45DD-AD0B-98DAF3F26F19 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
Hi Inoue-san,

Many thanks for your support and detail of explaination.
I understood and would like to close this topic.

Thanks and best regards,
bocap

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
--Apple-Mail-EF77718B-5E84-45DD-AD0B-98DAF3F26F19--