Re: BUG #4053: libpq documentation should express clearly, that integers are passed in network octet order - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #4053: libpq documentation should express clearly, that integers are passed in network octet order
Date
Msg-id 200805080220.m482KvR08948@momjian.us
Whole thread Raw
In response to BUG #4053: libpq documentation should express clearly, that integers are passed in network octet order  ("Aleksej Saushev" <asau@inbox.ru>)
Responses Re: BUG #4053: libpq documentation should express clearly, that integers are passed in network octet order
List pgsql-bugs
Aleksej Saushev wrote:
>
> The following bug has been logged online:
>
> Bug reference:      4053
> Logged by:          Aleksej Saushev
> Email address:      asau@inbox.ru
> PostgreSQL version: 8.3
> Operating system:   NetBSD, but this does no matter
> Description:        libpq documentation should express clearly, that
> integers are passed in network octet order
> Details:
>
> The documentation on PQexecParams is silent about the precise format,
> expected by server for binary parameters, it should be more explicit
> and note that integers are expected in network octet order.

This brings up a good question.  Exactly how do users know what format
_binary_ is?  int4 is network byte order, but what about int8, float4,
inet?

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #4040: psql should provide option to not prompt for password
Next
From: Andrew Chernow
Date:
Subject: Re: BUG #4053: libpq documentation should express clearly, that integers are passed in network octet order