Re: Mixed up protocol packets in server response?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michal Politowski <mpol+pg(at)meep(dot)pl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Mixed up protocol packets in server response?
Date: 2011-06-01 14:11:11
Message-ID: 17825.1306937471@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-jdbc

Michal Politowski <mpol+pg(at)meep(dot)pl> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message salah jubeh 2011-06-01 14:27:57 currval = currval+1
Previous Message jlhgis 2011-06-01 14:09:54 Re: troubles with initdb

Browse pgsql-jdbc by date

  From Date Subject
Next Message Craig Ringer 2011-06-02 00:50:30 Re: Mixed up protocol packets in server response?
Previous Message Emi Lu 2011-06-01 13:55:18 Re: "postgresql-9.0-801.jdbc4.jar" Causing "Error committing transaction. Cause: org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled." Exception