From Christian@merus.co.uk Wed Sep 20 15:49:44 2006 X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 7EF829FB3C0 for ; Wed, 20 Sep 2006 12:49:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 75116-07 for ; Wed, 20 Sep 2006 15:49:19 +0000 (UTC) X-Greylist: delayed 00:06:43.351773 by SQLgrey- Received: from p15179701.pureserver.info (p15179701.pureserver.info [82.165.38.237]) by postgresql.org (Postfix) with ESMTP id E224C9FB3B4 for ; Wed, 20 Sep 2006 12:49:18 -0300 (ADT) Received: (qmail 13583 invoked from network); 20 Sep 2006 16:42:32 +0100 Received: from host-84-9-82-91.bulldogdsl.com (HELO ?192.168.2.13?) (84.9.82.91) by p15179701.pureserver.info with SMTP; 20 Sep 2006 16:42:32 +0100 Message-ID: <4511618F.9050209@merus.co.uk> Date: Wed, 20 Sep 2006 16:43:11 +0100 From: Christian Dannemann Organization: Merus Software Ltd User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: jdbc 8.n driver / pgcluster problem Content-Type: multipart/alternative; boundary="------------050503080005020403080809" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.375 tagged_above=0 required=5 tests=HTML_30_40, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200609/74 X-Sequence-Number: 15792 This is a multi-part message in MIME format. --------------050503080005020403080809 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To whom it may concern: We have installed pgcluster (1.3 with postgres 8.0.1) and are currently testing it as we want to use it for a client in a production environment. Apparently, pgcluster's replication only works when using jdbc driver < 8.0, so 7.4 works fine and all database changes submitted to one database are replicated across the cluster without any problem. When we use the 8.0 driver, the changes only go to the database that we connect to and are not replicated to the cluster. I was wondering if this problem is known and if yes, if there is a plan to fix it (either in the jdbc driver or in pgcluster). Best Regards, Christian -- Christian Dannemann Managing Director Merus Software Ltd Phone: +44 (0)1453 708 600 DDI: +44 (0)1453 708 610 VoIP: christian@sip.merus.co.uk http://www.merus.co.uk --------------050503080005020403080809 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To whom it may concern:

We have installed pgcluster (1.3 with postgres 8.0.1) and are currently testing it as we want to use it for a client in a production environment.

Apparently, pgcluster's replication only works when using jdbc driver < 8.0, so 7.4 works fine and all database changes submitted to one database are replicated across the cluster without any problem.

When we use the 8.0 driver, the changes only go to the database that we connect to and are not replicated to the cluster.

I was wondering if this problem is known and if yes, if there is a plan to fix it (either in the jdbc driver or in pgcluster).

Best Regards,

Christian
-- 
Christian Dannemann
Managing Director
Merus Software Ltd
Phone: +44 (0)1453 708 600
DDI: +44 (0)1453 708 610
VoIP: christian@sip.merus.co.uk
http://www.merus.co.uk
--------------050503080005020403080809-- From books@ejurka.com Thu Sep 21 02:45:46 2006 X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id A98C79FB2D6 for ; Wed, 20 Sep 2006 23:45:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 03763-09 for ; Thu, 21 Sep 2006 02:45:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with SMTP id EAABA9FB2DA for ; Wed, 20 Sep 2006 23:45:35 -0300 (ADT) Received: (qmail 3103 invoked by uid 1112); 21 Sep 2006 02:45:32 -0000 Date: Wed, 20 Sep 2006 21:45:32 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Christian Dannemann cc: pgsql-jdbc@postgresql.org Subject: Re: jdbc 8.n driver / pgcluster problem In-Reply-To: <4511618F.9050209@merus.co.uk> Message-ID: References: <4511618F.9050209@merus.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200609/75 X-Sequence-Number: 15793 On Wed, 20 Sep 2006, Christian Dannemann wrote: > Apparently, pgcluster's replication only works when using jdbc driver < 8.0, > so 7.4 works fine and all database changes submitted to one database are > replicated across the cluster without any problem. > The 8.0 driver started making full use of the V3 query protocol and since pgcluster uses query based replication I'd bet it doesn't correctly handle queries submitted via the extended query protocol. If this is true that's a very serious flaw and affects all other clients (that use the extended query protocol), not just a JDBC issue. A workaround for the JDBC driver might be adding ?protocolVersion=2 to your URL, but this revelation would make me hesitate to use pgcluster at all. Kris Jurka From oliver@opencloud.com Thu Sep 21 02:51:33 2006 X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 0D4B79FB306 for ; Wed, 20 Sep 2006 23:51:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 93315-10 for ; Wed, 20 Sep 2006 23:51:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 318BD9FB304 for ; Wed, 20 Sep 2006 23:51:22 -0300 (ADT) Received: from sony.opencloud.co.nz ([192.168.0.41]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1GQEel-0004dF-Hs; Thu, 21 Sep 2006 14:51:19 +1200 Message-ID: <4511FE29.9090706@opencloud.com> Date: Thu, 21 Sep 2006 14:51:21 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christian Dannemann CC: pgsql-jdbc@postgresql.org Subject: Re: jdbc 8.n driver / pgcluster problem References: <4511618F.9050209@merus.co.uk> In-Reply-To: <4511618F.9050209@merus.co.uk> 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 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200609/76 X-Sequence-Number: 15794 Christian Dannemann wrote: > To whom it may concern: > > We have installed pgcluster (1.3 with postgres 8.0.1) and are currently > testing it as we want to use it for a client in a production environment. > > Apparently, pgcluster's replication only works when using jdbc driver < > 8.0, so 7.4 works fine and all database changes submitted to one > database are replicated across the cluster without any problem. > > When we use the 8.0 driver, the changes only go to the database that we > connect to and are not replicated to the cluster. > > I was wondering if this problem is known and if yes, if there is a plan > to fix it (either in the jdbc driver or in pgcluster). The main change between the 7.4 and 8.0 drivers was a change to use the extended query protocol instead of the simple query protocol. Perhaps pgcluster does not support the extended query protocol correctly? -O