Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 85B77632A4D for ; Thu, 19 Nov 2009 18:12:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 75694-06 for ; Thu, 19 Nov 2009 22:11:52 +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 1F33963277D for ; Thu, 19 Nov 2009 18:12:04 -0400 (AST) Received: (qmail 18878 invoked by uid 512); 19 Nov 2009 22:12:01 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 19 Nov 2009 22:12:01 -0000 Received: from unknown (HELO ?192.168.24.54?) (210.148.129.92) by sd.tpf.co.jp with SMTP; 19 Nov 2009 22:12:01 -0000 Message-ID: <4B05C2AF.1050305@tpf.co.jp> Date: Fri, 20 Nov 2009 07:11:59 +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> In-Reply-To: <48DA836F3865C54B8FBF424A3B775AF6DE908683@Exchange-Server.scanlab-intern.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.463 tagged_above=-10 required=5 tests=AWL=-0.464, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200911/54 X-Sequence-Number: 10103 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