Re: PQmakeEmptyPGresult() will return NULL if allocation

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: PQmakeEmptyPGresult() will return NULL if allocation
Дата
Msg-id 42AA547D.3090305@samurai.com
обсуждение исходный текст
Ответ на PQmakeEmptyPGresult() will return NULL if allocation fails  (Volkan YAZICI <volkan.yazici@gmail.com>)
Ответы Re: PQmakeEmptyPGresult() will return NULL if allocation  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
Volkan YAZICI wrote:
> PQmakeEmptyPGresult() will return NULL if malloc() fails for required
> PGresult struct.

Good catch. However, there's not much point having PQmakeEmptyPGresult()
return NULL on OOM if the various call sites of the function within
libpq don't check the return value and handle OOM themselves.

Some checking reveals that there are a few other bits of code in libpq
that don't handle malloc() failures correctly. I'll take a look at
fixing this today or tomorrow.

-Neil

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: indxpath.c refactoring
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: ON COMMIT and foreign keys