Re: Implementing Frontend/Backend Protocol TCP/IP - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Implementing Frontend/Backend Protocol TCP/IP
Date
Msg-id 20091027134454.GC4876@alvh.no-ip.org
Whole thread Raw
In response to Re: Implementing Frontend/Backend Protocol TCP/IP  (Raimon Fernandez <coder@montx.com>)
List pgsql-general
Raimon Fernandez wrote:

> I receive string data, I suppose it's text data.
>
> I can parse the data received, search for a B.

You don't search for a B.  You search for an S.  The B in the
documentation you quote indicates that this message can be sent by the
backend only.  You'll notice others have an F (sent by frontend only)
and some have F & B.

> Documentation:
> -----------------------------------------------------------------------------
> ParameterStatus (B)
> Byte1(’S’)
> Identifies the message as a run-time parameter status report.
> Int32
> Length of message contents in bytes, including self.
> String
> The name of the run-time parameter being reported.
> String
> The current value of the parameter.


--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Implementing Frontend/Backend Protocol TCP/IP
Next
From: John Cheng
Date:
Subject: Just saw a blog on Amazon Relational Database Service (Beta)