Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9D22F6327BA for ; Fri, 4 Dec 2009 19:27:25 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 00240-08 for ; Fri, 4 Dec 2009 23:27:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 9E388632793 for ; Fri, 4 Dec 2009 19:27:17 -0400 (AST) Received: (qmail 26659 invoked by uid 512); 4 Dec 2009 23:27:12 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 4 Dec 2009 23:27:12 -0000 Received: from unknown (HELO ?192.168.24.54?) (220.210.133.18) by sd.tpf.co.jp with SMTP; 4 Dec 2009 23:27:12 -0000 Message-ID: <4B199ACB.8030207@tpf.co.jp> Date: Sat, 05 Dec 2009 08:27:07 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Andreas Gaab CC: "'pgsql-odbc@postgresql.org'" Subject: Re: declare/fetch problem with pgpool 2.2.3; Postgres 8.4; ODBC 8.03.04.00 References: <48DA836F3865C54B8FBF424A3B775AF6DE908683@Exchange-Server.scanlab-intern.de> <4B05C2AF.1050305@tpf.co.jp> <48DA836F3865C54B8FBF424A3B775AF6DE908686@Exchange-Server.scanlab-intern.de> <4B0883FC.6060202@tpf.co.jp> In-Reply-To: <4B0883FC.6060202@tpf.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.117 tagged_above=-10 required=5 tests=BAYES_00=-2.599, DNS_FROM_RFC_BOGUSMX=1.482 X-Spam-Level: X-Archive-Number: 200912/13 X-Sequence-Number: 10140 Hi Andreas, Sorry for the delay. The recent pgpool-II 2.2.6 release seems to contain the bug fix. Thanks to pgpool team. regards, Hiroshi Inoue Hiroshi Inoue wrote: > Andreas Gaab wrote: >>> -----Ursprüngliche Nachricht----- >>> Von: Hiroshi Inoue [mailto:inoue@tpf.co.jp] Gesendet: Donnerstag, 19. >>> November 2009 23:12 >>> An: Andreas Gaab >>> Cc: 'pgsql-odbc@postgresql.org' >>> Betreff: Re: [ODBC] declare/fetch problem with pgpool 2.2.3; Postgres >>> 8.4; ODBC 8.03.04.00 >>> >>> Hi Andreas, >>> >>> Andreas Gaab wrote: >>>> I encountered a problem using pgpool with two identical postgres 8.4 >>>> servers as backends.> >>>> Activating the odbc-setting declare/fetch, our application creates >>>> an data mismatch error. >>>> As far as I can track down the problem, it is caused because the >>>> cursors are defined after an BEGIN, thus with load balancing >>>> disabled, but are CLOSED after the COMMIT, thus are only closed on >>>> one server. This leads to data inconsistency for the next query >>>> DECLARING an cursor. >>> Unfortunately I'm not familiar with pgpool. >>> Are DECLARE, FETCH and CLOSE regarded as members of SELECT family ? >>> If so, I'm suspicios if it's appropriate. >>> I would ask pgpool guys about it. >>> >>> regards, >>> Hiroshi Inoue >> >> >> Hi Hiroshi, >> >> DECLARE, FETCH and CLOSE are probably regarded as members of the >> SELECT family and thus are load balanced. The problem arises, because >> the cursors are defined inside BEGIN; ... COMMIT; , and thus are send >> to all backends, but are CLOSEd after the transaction, and thus load >> balanced, which leaves on cursor defined on one backend. >> >> The transaction block and handling of cursor is done by the odbc, >> isn't it? > > Hi Andreas, > I told pgpool guys this issue at JPUGCon Yesterday. > I would get a reply in a few days. > > regards, > Hiroshi Inoue