Re: Don't pass NULL pointer to strcmp().

Поиск
Список
Период
Сортировка
Искать
От
Nathan Bossart
Тема
Re: Don't pass NULL pointer to strcmp().
Дата
Msg-id
20231102034557.GB85609@nathanxps13
Ответ на
Список
Дерево обсуждения
Don't pass NULL pointer to strcmp(). Xing Guo <higuoxing@gmail.com>
Re: Don't pass NULL pointer to strcmp(). Junwang Zhao <zhjwpku@gmail.com>
Re: Don't pass NULL pointer to strcmp(). Aleksander Alekseev <aleksander@timescale.com>
Re: Don't pass NULL pointer to strcmp(). Xing Guo <higuoxing@gmail.com>
Re: Don't pass NULL pointer to strcmp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Don't pass NULL pointer to strcmp(). Xing Guo <higuoxing@gmail.com>
Re: Don't pass NULL pointer to strcmp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Don't pass NULL pointer to strcmp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Don't pass NULL pointer to strcmp(). Nathan Bossart <nathandbossart@gmail.com>
Re: Don't pass NULL pointer to strcmp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Don't pass NULL pointer to strcmp(). Nathan Bossart <nathandbossart@gmail.com>
Re: Don't pass NULL pointer to strcmp(). Xing Guo <higuoxing@gmail.com>
Re: Don't pass NULL pointer to strcmp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Don't pass NULL pointer to strcmp(). Xing Guo <higuoxing@gmail.com>
On Wed, Nov 01, 2023 at 10:39:04PM -0400, Tom Lane wrote:
> Nathan Bossart  writes:
>> What if we disallowed NULL string GUCs in v17?
> 
> Well, we'd need to devise some other solution for hacks like the
> one used by timezone_abbreviations (see comment in
> check_timezone_abbreviations).  I think it's not worth the trouble,
> especially seeing that 95% of guc.c is already set up for this.
> The bugs are mostly in newer code like get_explain_guc_options,
> and I think that's directly traceable to the lack of any comments
> or docs about this behavior.

Eh, yeah, it's probably not worth it if we find ourselves trading one set
of hacks for another.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com


В списке pgsql-hackers по дате отправления
От: Nathan Bossart
Дата:
От: Anton A. Melnikov
Дата:
FAQ