Re: BUG #18845: DEREF_OF_NULL.RET guc_malloc possibly returns NULL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #18845: DEREF_OF_NULL.RET guc_malloc possibly returns NULL
Дата
Msg-id 3051193.1741961099@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #18845: DEREF_OF_NULL.RET guc_malloc possibly returns NULL  (Daniel Gustafsson <daniel@yesql.se>)
Ответы Re: BUG #18845: DEREF_OF_NULL.RET guc_malloc possibly returns NULL
Re: BUG #18845: DEREF_OF_NULL.RET guc_malloc possibly returns NULL
Список pgsql-bugs
Daniel Gustafsson <daniel@yesql.se> writes:
> Why would we want FATAL here?  Wouldn't it be better to return false like how
> other check_ functions already do?

Indeed.  Also, a quick survey shows a lot of inconsistency in
guc_malloc callers --- some are lazy and just use ERROR rather
than LOG-and-return.  That's probably all right for PGC_POSTMASTER
variables (since there's no chance of continuing anyway) but
perhaps it's worth improving elsewhere.

            regards, tom lane



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