pgsql: Be more wary about NULL values for GUC string variables.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Be more wary about NULL values for GUC string variables.
Дата
Msg-id E1qya0s-003brT-0P@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Be more wary about NULL values for GUC string variables.

get_explain_guc_options() crashed if a string GUC marked GUC_EXPLAIN
has a NULL boot_val.  Nosing around found a couple of other places
that seemed insufficiently cautious about NULL string values, although
those are likely unreachable in practice.  Add some commentary
defining the expectations for NULL values of string variables,
in hopes of forestalling future additions of more such bugs.

Xing Guo, Aleksander Alekseev, Tom Lane

Discussion: https://postgr.es/m/CACpMh+AyDx5YUpPaAgzVwC1d8zfOL4JoD-uyFDnNSa1z0EsDQQ@mail.gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6e1cca5113487bb9ef4daa1bb2833c6333466410

Modified Files
--------------
src/backend/utils/misc/guc.c   |  3 ++-
src/include/utils/guc_tables.h | 10 ++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)


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

Предыдущее
От: David Rowley
Дата:
Сообщение: pgsql: Attempt to stabilize postgres_fdw tests
Следующее
От: David Rowley
Дата:
Сообщение: pgsql: Stabilize postgres_fdw tests on 32-bit machines