Re: [GENERAL] Retrieving query results

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Retrieving query results
Дата
Msg-id 20937.1503760366@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] Retrieving query results  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: [GENERAL] Retrieving query results
Список pgsql-general
Michael Paquier <michael.paquier@gmail.com> writes:
> On Fri, Aug 25, 2017 at 8:10 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I think the real problem occurs where we realloc the array bigger.

> Looking at the surroundings, I think that it would be nice to have
> pqAddTuple and PQsetvalue set an error message with this patch.

Yeah, I was thinking about that myself - the existing design presumes
that the only possible reason for failure of pqAddTuple is OOM, but
it'd be better to distinguish "too many tuples" from true OOM.  So
we should also refactor to make pqAddTuple responsible for setting
the error message.  Might be best to do the refactoring first.

            regards, tom lane


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [GENERAL] Retrieving query results
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Change location of function/type installed from C-extension