Re: Protocol Question

Thomas Heller <[email protected]> Mon, 18 Aug 2014 11:12:14 +0200
Newsgroups gmane.comp.db.postgresql.interfaces
Message-ID <CAGTxmOsMraAf=aX0bSQtTLEHtTfzOC6uF1=wjqaU+TWB3qY-YQ@mail.gmail.com>
--001a1133a5684fbda50500e3c4d9
Content-Type: text/plain; charset=UTF-8

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 <[email protected]> wrote:

> Thomas Heller <[email protected]> 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
>

--001a1133a5684fbda50500e3c4d9
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks Tom, you were in fact correct.<div><br></div><div>T=
he 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 messag=
e is beyond me but I have an extra check in place now that ensures all type=
s read all the bytes received for it. So another potential source of errors=
 fixed.</div>
<div><br></div><div>Thanks again,</div><div>/thomas</div></div><div class=
=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Mon, Aug 18, 2014 at=
 7:55 AM, Tom Lane <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]=
s" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"">Thomas Heller &lt;<a href=3D=
"mailto:[email protected]">[email protected]</a>&gt; writes:<br>
&gt; I just encountered a weird protocol error while stress testing my clie=
nt.<br>
&gt; I&#39;m receiving unexpected &#39;n&#39;/NoData messages while reading=
 &#39;D&#39;/DataRow<br>
&gt; messages.<br>
<br>
</div>AFAICS, NoData can only be returned in response to Describe Statement=
<br>
or Describe Portal issued against a command that cannot return rows.<br>
<br>
If you can provide a counterexample for this claim, I&#39;d be interested<b=
r>
to see it.=C2=A0 But my money is on confusion on the client side.<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 regards, tom lane<br>
</blockquote></div><br></div>

--001a1133a5684fbda50500e3c4d9--