Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

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


  • From: Bruce Momjian <bruce(at)momjian(dot)us>
  • To: Andrew Chernow <ac(at)esilo(dot)com>
  • Cc: Aleksej Saushev <asau(at)inbox(dot)ru>, Merlin Moncure <mmoncure(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
  • Subject: Re: Re: BUG #4053: libpq documentation should express clearly, that integers are passed in network octet order
  • Date: Thu, 8 May 2008 12:27:01 -0400 (EDT)
  • Message-id: <200805081627(dot)m48GR1o19603(at)momjian(dot)us>

Andrew Chernow wrote:
> >>> 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.
> >> No, it is still required. There's not a single reference to libpqtypes
> >> in Postgres documentation, and libpqtypes isn't part of the distribution,
> >> if I understand it right.
> > 
> > Agreed.
> > 
> 
> Correct, libpqtypes is not part of the core.
> 
> What we are saying is, libpqtypes solves this problem.  I don't think 
> docs is the solution because that just supports the idea of libpq apps 
> directly handling binary formats; which makes changing these formats 
> MUCH harder in future releases.  Lots of libpq apps would be dependant 
> on these binary formats.
> 
> By all means, documenting this is probably a good idea.  I just don't 
> think it solves any of the interesting problems.

Agreed that libpqtypes would solve the problem, but the odd thing to me
is that we have gotten very few requests for binary format information
since we added binary prepared parameters years ago, so is no one
actually using it?

-- 
  Bruce Momjian  <bruce(at)momjian(dot)us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group