Re: libpq and Binary Data Formats - Mailing list pgsql-hackers

From Tom Lane
Subject Re: libpq and Binary Data Formats
Date
Msg-id 17583.1181057437@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq and Binary Data Formats  (Richard Huxton <dev@archonet.com>)
List pgsql-hackers
Richard Huxton <dev@archonet.com> writes:
> Wilhansen Li wrote:
>> Basically, better support for binary formats which includes, but not 
>> limited
>> to:
>> 1) functions for converting to and from various datatypes
>> 2) reducing the need to convert to and from network byte order
>> 3) better documentation

> Well, it sounds to me like this is two separate items: (1+2), (3).

I could see adding more support in libpq for converting native int and
float types to and from the existing on-the-wire binary formats, rather
than making applications do it for themselves as is the case now.  But I
think you've got 0 chance of persuading anyone that we should try to
support platform-dependent on-the-wire formats --- the potential
performance advantages are minimal and the added complexity large.
IOW, 1, 3 yes, 2 no.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: GIN, XLogInsert and MarkBufferDirty
Next
From: Tom Lane
Date:
Subject: Re: CREATEROLE, CREATEDB