]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Handle NULL for short descriptions of custom GUC variables
authorMichael Paquier <michael@paquier.xyz>
Sat, 28 May 2022 03:12:58 +0000 (12:12 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 28 May 2022 03:12:58 +0000 (12:12 +0900)
commitc3db8a2e2ea4498d87060a1f5101c12055a4b174
treebd0d04f751b23d2e66001f41ff805106cf3cbc7a
parenta44bc8b8f421d8696eaa796884acb6ed6cc6c670
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
src/backend/utils/misc/guc.c