pgsql: Handle NULL for short descriptions of custom GUC variables

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Handle NULL for short descriptions of custom GUC variables
Дата
Msg-id E1numtY-001UMP-9P@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Handle NULL for short descriptions of custom GUC variables

If a short description is specified as NULL in one of the various
DefineCustomXXXVariable() functions available to external modules to
define a custom parameter, SHOW ALL would crash.  This change teaches
SHOW ALL to properly handle NULL short descriptions, as well as any code
paths that manipulate it, to gain in flexibility.  Note that
help_config.c was already able to do that, when describing a set of GUCs
for postgres --describe-config.

Author: Steve Chavez
Reviewed by: Nathan Bossart, Andres Freund, Michael Paquier, Tom Lane
Discussion: https://postgr.es/m/CAGRrpzY6hO-Kmykna_XvsTv8P2DshGiU6G3j8yGao4mk0CqjHA%40mail.gmail.com
Backpatch-through: 10

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fe441a0319405a52e773e8f3750e925ecc5d86eb

Modified Files
--------------
src/backend/utils/misc/guc.c | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)


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

Предыдущее
От: David Rowley
Дата:
Сообщение: pgsql: Teach remove_unused_subquery_outputs about window run conditions
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Revert "Add single-item cache when looking at topmost XID of a s