pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: Dang Minh Huong <kakalot49@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Degradation of performance when upgrade psqlodbc to 09.03.0400
Date: Tue, 16 Feb 2016 23:07:01 +0900
Message-ID: <56C32D05.3010500@dream.email.ne.jp> (raw)
In-Reply-To: <8588FA7D-74ED-4CD9-9E35-672DD884625E@gmail.com>
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>
	<A38ECDFE-0499-4859-A0DD-832050A9B6F1@gmail.com>
	<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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

view thread (22+ messages)  latest in thread

Message-ID: <56C32D05.3010500@dream.email.ne.jp>
Permalink:  ../56C32D05.3010500@dream.email.ne.jp/
Also on:    postgresql.org/message-id/56C32D05.3010500@dream.email.ne.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: h-inoue@dream.email.ne.jp, kakalot49@gmail.com, hlinnaka@iki.fi
  Subject: Re: Degradation of performance when upgrade psqlodbc to 09.03.0400
  In-Reply-To: <56C32D05.3010500@dream.email.ne.jp>
  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> <A38ECDFE-0499-4859-A0DD-832050A9B6F1@gmail.com> <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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox