Re: Protocol Question - Mailing list pgsql-interfaces

From Thomas Heller
Subject Re: Protocol Question
Date
Msg-id CAGTxmOsMraAf=aX0bSQtTLEHtTfzOC6uF1=wjqaU+TWB3qY-YQ@mail.gmail.com
Whole thread Raw
In response to Re: Protocol Question  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
Thanks Tom, you were in fact correct.

The client tripped over itself and forgot to finish reading some bytes when reading a binary Text field. How that ended up looking like a NoData message is beyond me but I have an extra check in place now that ensures all types read all the bytes received for it. So another potential source of errors fixed.

Thanks again,
/thomas


On Mon, Aug 18, 2014 at 7:55 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Thomas Heller <info@zilence.net> writes:
> I just encountered a weird protocol error while stress testing my client.
> I'm receiving unexpected 'n'/NoData messages while reading 'D'/DataRow
> messages.

AFAICS, NoData can only be returned in response to Describe Statement
or Describe Portal issued against a command that cannot return rows.

If you can provide a counterexample for this claim, I'd be interested
to see it.  But my money is on confusion on the client side.

                        regards, tom lane

pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: Protocol Question
Next
From: "Greg Sabino Mullane"
Date:
Subject: DBD::Pg 3.4.0 released