Fix calloc check if oom (PQcancelCreate)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Fix calloc check if oom (PQcancelCreate)
Дата
Msg-id CAEudQAqQFTH7xCB-+K6zEKjfqbhqCxcr_w4DuJTxVT6h3vzu2w@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fix calloc check if oom (PQcancelCreate)  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
Hi.

I think that commit 61461a3, left some oversight.
The function *PQcancelCreate* fails in check,
return of *calloc* function.

Trivial fix is attached.

But, IMO, I think that has more problems.
If any allocation fails, all allocations must be cleared.
Or is the current behavior acceptable?

best regards,
Ranier Vilela



Вложения

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

Предыдущее
От: Jelte Fennema-Nio
Дата:
Сообщение: Re: DISCARD ALL does not force re-planning of plpgsql functions/procedures
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: POC: GROUP BY optimization