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)
Список
Дерево обсуждения
Re: [GENERAL] Retrieving query results Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] Retrieving query results Michael Paquier <michael.paquier@gmail.com>
Re: [GENERAL] Retrieving query results Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] Retrieving query results Michael Paquier <michael.paquier@gmail.com>
Re: [GENERAL] Retrieving query results Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] Retrieving query results Michael Paquier <michael.paquier@gmail.com>
Re: [GENERAL] Retrieving query results Igor Korot <ikorot01@gmail.com>
Re: [GENERAL] Retrieving query results Laurenz Albe <laurenz.albe@cybertec.at>
Re: [GENERAL] Retrieving query results Igor Korot <ikorot01@gmail.com>
Re: [GENERAL] Retrieving query results Igor Korot <ikorot01@gmail.com>
Re: [GENERAL] Retrieving query results Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] Retrieving query results Igor Korot <ikorot01@gmail.com>
Michael Paquier writes: > On Fri, Aug 25, 2017 at 8:10 AM, Tom Lane 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 по дате отправления
От: Tom Lane
Дата: