Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 94B91B60232 for ; Wed, 1 Jun 2011 11:11:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 57893-04 for ; Wed, 1 Jun 2011 14:11:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 6B636B623E3 for ; Wed, 1 Jun 2011 11:11:15 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p51EBCMa017826; Wed, 1 Jun 2011 10:11:12 -0400 (EDT) To: Michal Politowski cc: pgsql-general@postgresql.org Subject: Re: Mixed up protocol packets in server response? In-reply-to: <20110601130649.GA21333@meep.pl> References: <20110601130649.GA21333@meep.pl> Comments: In-reply-to Michal Politowski message dated "Wed, 01 Jun 2011 15:06:49 +0200" Date: Wed, 01 Jun 2011 10:11:11 -0400 Message-ID: <17825.1306937471@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/13 X-Sequence-Number: 176446 Michal Politowski writes: > 2. then looking at the answer array in ReceiveTupleV3: > ... > So it looks like the server wanted to send > D row 1, D row 2, D row 3, D row 4, C SELECT, Z T > but the application sees > D ro, ow 4, C SELECT, Z T, w 1, D row 2, D row 3, D r > What may be the cause of this weird problem? Is it some known or unknown bug in > 8.3.4 or is the application/Java side more suspected? It's just about impossible to believe that the server sent that, because (1) it generates and sends those messages one at a time, and (2) nothing of the sort has ever been reported before. My money is on some foulup in buffer-wrangling on the client side. regards, tom lane