Re: [PATCHES] libpq type system 0.9a

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: [PATCHES] libpq type system 0.9a
Дата
Msg-id
2992.1207845356@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Re: [PATCHES] libpq type system 0.9a Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] libpq type system 0.9a Jeff Davis <pgsql@j-davis.com>
Re: [PATCHES] libpq type system 0.9a Florian Pflug <fgp.phlo.org@gmail.com>
Re: [PATCHES] libpq type system 0.9a Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] libpq type system 0.9a "Merlin Moncure" <mmoncure@gmail.com>
Andrew Chernow  writes:
> Recap: PQresultDup, PQresultSetFieldDesc and PQresultSetFieldValue.
> We feel this approach, which we initially thought wouldn't work, is 
> better than making pg_result public.

That doesn't seem to me to fit very well with libpq's internals ---
in particular the PQresult struct is not designed to support dynamically
adding columns, which retail PQresultSetFieldDesc() calls would seem to
require, and it's definitely not designed to allow that to happen after
you've begun to store data, which the apparent freedom to intermix
PQresultSetFieldDesc and PQresultSetFieldValue calls would seem to
imply.

Instead of PQresultSetFieldDesc, I think it might be better to provide a
call that creates an empty (of data) PGresult with a specified tuple
descriptor in one go.
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: Commit fest queue
От: Alvaro Herrera
Дата:
Сообщение: Re: Commit fest queue
FAQ