Re: BUG #16190: The usage of NULL pointer in refint.c

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #16190: The usage of NULL pointer in refint.c
Дата
Msg-id 20200107012741.GD2386@paquier.xyz
обсуждение исходный текст
Ответ на Re: BUG #16190: The usage of NULL pointer in refint.c  (Andres Freund <andres@anarazel.de>)
Ответы Re: BUG #16190: The usage of NULL pointer in refint.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Mon, Jan 06, 2020 at 09:44:43AM -0800, Andres Freund wrote:
> I think we should consider either moving this out of contrib, or fixing
> it up. test/example code is fine, but contrib gets installed by default
> for a lot of people... And yea, this isn't just about contrib/spi.

No idea about moving that out of contrib/, but here is a patch to fix
things that just moves the allocations to TopMemoryContext and removes
the system calls.
--
Michael

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16122: segfault pg_detoast_datum (datum=0x0) at fmgr.c:1833 numrange query
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16190: The usage of NULL pointer in refint.c