Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id B29216326C2 for ; Tue, 27 Oct 2009 10:45:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 22689-07 for ; Tue, 27 Oct 2009 13:44:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id ED3996332D9 for ; Tue, 27 Oct 2009 10:44:58 -0300 (ADT) Received: from perhan.alvh.no-ip.org (200-126-87-11.bk6-dsl.surnet.cl [200.126.87.11]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id BDC17348034; Tue, 27 Oct 2009 06:44:52 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 9AFBE6E31F; Tue, 27 Oct 2009 10:44:54 -0300 (CLST) Date: Tue, 27 Oct 2009 10:44:54 -0300 From: Alvaro Herrera To: Raimon Fernandez Cc: pgsql-general@postgresql.org Subject: Re: Implementing Frontend/Backend Protocol TCP/IP Message-ID: <20091027134454.GC4876@alvh.no-ip.org> References: <92781008-8A70-42CE-A49B-6EE67103FACB@montx.com> <20091026231516.GN8812@alvh.no-ip.org> <4AE62E21.7040600@hogranch.com> <66F15D69-75E5-4D8E-84F8-2F21E09BBA98@pgedit.com> <9A9F2678-36B9-42A2-91B2-69076065E8EB@montx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9A9F2678-36B9-42A2-91B2-69076065E8EB@montx.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200910/1034 X-Sequence-Number: 154728 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.