pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <inoue@tpf.co.jp>
To: Craig Ringer <craig@2ndquadrant.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Protocol de-synchronisation bug, bogus query sent
Date: Fri, 20 Jun 2014 12:27:28 +0900
Message-ID: <53A3AA20.5020800@tpf.co.jp> (raw)
In-Reply-To: <53A39493.5030104@2ndquadrant.com>
References: <53A25C95.707@2ndquadrant.com>
	<53A26635.4030200@tpf.co.jp>
	<53A26D79.1070601@2ndquadrant.com>
	<53A27CF8.9090504@2ndquadrant.com>
	<53A2D2AB.8050109@tpf.co.jp>
	<53A3805C.7010800@2ndquadrant.com>
	<53A39493.5030104@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

(2014/06/20 10:55), Craig Ringer wrote:
> On 06/20/2014 08:29 AM, Craig Ringer wrote:
>> On 06/19/2014 08:08 PM, Hiroshi Inoue wrote:
>>> (2014/06/19 11:47), Craig Ringer wrote:
>>>> On 06/19/2014 12:56 PM, Craig Ringer wrote:
>>>>>
>>>>> and we're attempting to use the version obtained from the server before
>>>>> we have it, instead of the conninfo-specified version to use for
>>>>> protocol selection purposes.
>>>>
>>>> The attached patch fixes this.
>>>
>>> Thanks.
>>> I would also check the source of this trouble.
>>
>> Huh?
>>
>> That _is_ the source of this trouble. Some code that runs during
>> connection setup, before the server version is available, tries to use
>> the version obtained from the server instead of the protocol version
>> requested in the conninfo.
>
> Just to clarify, only the 0002 patch is required. My branch at:
>
> https://github.com/ringerc/psqlodbc/tree/fix-febe-protocol-desync-emptyquery
>
> only contains the second patch. I've attached a revised version that
> should make that clearer.
>
> Please apply / pull.

Thanks.
Applied.

I also pushd another change. It fixes another (or a real) cause of
this problem. I borrowed your beforeV2 in it. Thanks again.

regards,
Hiroshi Inoue


-- 
I am using the free version of SPAMfighter.
SPAMfighter has removed 10986 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

Do you have a slow PC? Try a Free scan 
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (11+ messages)  latest in thread

Message-ID: <53A3AA20.5020800@tpf.co.jp>
Permalink:  ../53A3AA20.5020800@tpf.co.jp/
Also on:    postgresql.org/message-id/53A3AA20.5020800@tpf.co.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: inoue@tpf.co.jp, craig@2ndquadrant.com
  Subject: Re: Protocol de-synchronisation bug, bogus query sent
  In-Reply-To: <53A3AA20.5020800@tpf.co.jp>
  References: <53A25C95.707@2ndquadrant.com> <53A26635.4030200@tpf.co.jp> <53A26D79.1070601@2ndquadrant.com> <53A27CF8.9090504@2ndquadrant.com> <53A2D2AB.8050109@tpf.co.jp> <53A3805C.7010800@2ndquadrant.com> <53A39493.5030104@2ndquadrant.com> <53A3AA20.5020800@tpf.co.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