Re: [PATCHES] libpq type system 0.9a

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: [PATCHES] libpq type system 0.9a
Дата
Msg-id 87zls1u5am.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: [PATCHES] libpq type system 0.9a  (Andrew Chernow <ac@esilo.com>)
Ответы Re: [PATCHES] libpq type system 0.9a  ("Merlin Moncure" <mmoncure@gmail.com>)
Список pgsql-hackers
"Andrew Chernow" <ac@esilo.com> writes:

> How would the caller of getvalues know whether the error was generated by a
> libpqtypes API call or by a libpq API call (like PQgetvalue)? PQgetf should
> behave exactely as PQgetvalue does, in regards to errors.

Hm. Well I was thinking of errors from database operations rather than things
like PQgetvalue. 

I suppose we have to decide whether pqtypes is a "wrapper" around libpq in
which case your functions would have to take the libpq error and copy it into
your error state or an additional set of functions which are really part of
appendage of libpq




--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's 24x7 Postgres support!


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [DOCS] [SQL] pl/PgSQL, variable names in NEW
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [DOCS] [SQL] pl/PgSQL, variable names in NEW