Re: Implementing Frontend/Backend Protocol TCP/IP

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Raimon Fernandez <coder(at)montx(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Implementing Frontend/Backend Protocol TCP/IP
Date: 2009-10-27 13:44:54
Message-ID: 20091027134454.GC4876@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Cheng 2009-10-27 13:46:30 Just saw a blog on Amazon Relational Database Service (Beta)
Previous Message Alvaro Herrera 2009-10-27 13:41:58 Re: Implementing Frontend/Backend Protocol TCP/IP

Browse pgsql-interfaces by date

  From Date Subject
Next Message Raimon Fernandez 2009-10-27 14:00:06 Re: Implementing Frontend/Backend Protocol TCP/IP
Previous Message Alvaro Herrera 2009-10-27 13:41:58 Re: Implementing Frontend/Backend Protocol TCP/IP