Re: libpq support for arrays and composites - Mailing list pgsql-hackers

From Andrew Chernow
Subject Re: libpq support for arrays and composites
Date
Msg-id 484CFF9D.4050506@esilo.com
Whole thread Raw
In response to Re: libpq support for arrays and composites  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
 >That makes it quite useless for my intended purpose.

I found no more use cases for text results after libpqtypes started to 
take shape, eventhough libpqtypes supports all data types in text & 
binary excluding arrays and composites.  Because of this, adding a text 
parser for arrays and composites felt like a lot of work for a little 
gain.  libpqtypes is really designed to be a binary interface.  The text 
support offered allows existing applications to use the new interface 
with results generated by PQexec(), meaning you can use PQgetf w/o 
having to change code to use PQputf().

If you take another glance at libpqtypes, you may see that result format 
decisions are pretty well abstracted and there really is no need for 
text results anymore (okay, I'll catagorize that as an opinion).
> I also am not particularly enamoured of the libpqtypes way of doing> things, which feels rather foreign to me.

Not sure we can fix this issue.  We made every attempt to keep things 
familiar ... printf/scanf style.  It's a new approach for libpq but an 
old one for C hacks.

-- 
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/



pgsql-hackers by date:

Previous
From: "Heikki Linnakangas"
Date:
Subject: Re: Automating our version-stamping a bit better
Next
From: H.Harada
Date:
Subject: proposal: add window function to 8.4