Re: BUG #4053: libpq documentation should express clearly, that integers are passed in network octet order

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org, "Bruce Momjian" <bruce(at)momjian(dot)us>, asau(at)inbox(dot)ru
Subject: Re: BUG #4053: libpq documentation should express clearly, that integers are passed in network octet order
Date: 2008-05-08 14:16:47
Message-ID: b42b73150805080716u28b172b9od65bf640cf954681@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Bruce Momjian wrote:
> 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?

This is exactly what libpqtypes solves. Not only do we handle
formatting of binary formats, we provide a level of protection from
internal format changes for libpq users. See the example here:
http://libpqtypes.esilo.com/. So, documentation of binary formats
(including network byte ordering) are not required.

merlin

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Aleksej Saushev 2008-05-08 15:10:52 Re: BUG #4053: libpq documentation should express clearly, that integers are passed in network octet order
Previous Message Christian.Strobl 2008-05-08 09:22:21 reproducible database crash with simple sql command