Re: libpq support for arrays and composites

Поиск
Список
Период
Сортировка
От Andrew Chernow
Тема Re: libpq support for arrays and composites
Дата
Msg-id 484CFF9D.4050506@esilo.com
обсуждение исходный текст
Ответ на Re: libpq support for arrays and composites  (Andrew Dunstan <andrew@dunslane.net>)
Список 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 по дате отправления:

Предыдущее
От: "Heikki Linnakangas"
Дата:
Сообщение: Re: Automating our version-stamping a bit better
Следующее
От: H.Harada
Дата:
Сообщение: proposal: add window function to 8.4