Re: NULL handling in exconfig deconstruction

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: NULL handling in exconfig deconstruction
Дата
Msg-id 22978.1542041453@sss.pgh.pa.us
обсуждение исходный текст
Ответ на NULL handling in exconfig deconstruction  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
Daniel Gustafsson <daniel@yesql.se> writes:
> In extension_config_remove() we first ensure that pg_extension.extconfig cannot
> contain any NULL values in the array, ERRORing out if so.  Later we however ask
> for NULL values back when deconstructing the array, throwing away the results
> knowing there wont be any, which seems superfluous (and wrong if there indeed
> were any).  The attached patch signals to deconstruct_array() that any NULL
> values should be considered an error instead of returned, to keep NULL value
> handling consistent (and shave two small allocations off).

LGTM, pushed.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #15212: Default values in partition tables don't work as expected and allow NOT NULL violation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] [PATCH v2] Add and report the new "session_read_only" GUC pseudo-variable.