Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wxmhs-0007cU-OL for pgsql-odbc@arkaria.postgresql.org; Fri, 20 Jun 2014 00:29:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wxmhs-00058U-2W for pgsql-odbc@arkaria.postgresql.org; Fri, 20 Jun 2014 00:29:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wxmhr-00056q-4I for pgsql-odbc@postgresql.org; Fri, 20 Jun 2014 00:29:27 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wxmhn-0002P7-Ow for pgsql-odbc@postgresql.org; Fri, 20 Jun 2014 00:29:26 +0000 Received: from ayaki.localdomain (106-69-84-43.dyn.iinet.net.au [106.69.84.43]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0LjJuR-1WQwOd25Il-00dSaX; Fri, 20 Jun 2014 02:29:21 +0200 Message-ID: <53A3805C.7010800@2ndquadrant.com> Date: Fri, 20 Jun 2014 08:29:16 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Hiroshi Inoue CC: "pgsql-odbc@postgresql.org" Subject: Re: Protocol de-synchronisation bug, bogus query sent References: <53A25C95.707@2ndquadrant.com> <53A26635.4030200@tpf.co.jp> <53A26D79.1070601@2ndquadrant.com> <53A27CF8.9090504@2ndquadrant.com> <53A2D2AB.8050109@tpf.co.jp> In-Reply-To: <53A2D2AB.8050109@tpf.co.jp> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:j7CNgmuqJmZpZOf/kbDTMqig5GhVkPJgYZkDbzEO5+p u9HCsEu/JmJlFdbIz0k+DpGxnSP/5U/Tkc88oFpPzQZvCHsjuO nOT92EsdL8N+u41uaC4nU41rC+0PX0cKS94iVB3LVBCcMfQCPt m6kuxCdc52xFUUnSj034chz02RmEgZo4eVWnveoo2E8T6uDuBg iXnXbJ/5oNxCWsOXNxLUKItERsNC/hVEz8MyDRidwIHP5nCLr5 VXIYdCzFxaRzDNfbiEmPSJfbIqh91R7XgKBDiH7BVtUmzQk34A xdoFbcP0suleKDLg9QMGJRPWwStYo9xHOAYvY174dg7ua4tejk t8c0t2ZE5pRhTxnK/jFeD2QQIhgGwnqvQUCBGINws X-Pg-Spam-Score: -1.9 (-) 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 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. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc