postgresql/src/backend
Nathan Bossart 977d865c36 Describe special values in GUC descriptions more consistently.
Many GUCs accept special values like -1 or an empty string to
disable the feature, use a system default, etc.  While the
documentation consistently lists these special values, the GUC
descriptions do not.  Many such descriptions fail to mention the
special values, and those that do vary in phrasing and placement.
This commit aims to bring some consistency to this area by applying
the following rules:

* Special values should be listed at the end of the long
  description.
* Descriptions should use numerals (e.g., "0") instead of words
  (e.g., "zero").
* Special value mentions should be concise and direct (e.g., "0
  disables the timeout.", "An empty string means use the operating
  system setting.").
* Multiple special values should be listed in ascending order.

Of course, there are exceptions, such as
max_pred_locks_per_relation and search_path, whose special values
are too complex to include.  And there are cases like
listen_addresses, where the meaning of an empty string is arguably
too obvious to include.  In those cases, I've refrained from adding
special value information to the GUC description.

Reviewed-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: "David G. Johnston" <david.g.johnston@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/Z6aIy4aywxUZHAo6%40nathan
2025-02-14 10:44:30 -06:00
..
access Remove unnecessary (char *) casts [xlog] 2025-02-13 10:57:07 +01:00
archive Update copyright for 2025 2025-01-01 11:21:55 -05:00
backup Update copyright for 2025 2025-01-01 11:21:55 -05:00
bootstrap Remove unnecessary (char *) casts [mem] 2025-02-12 08:50:13 +01:00
catalog Remove unnecessary (char *) casts [xlog] 2025-02-13 10:57:07 +01:00
commands Remove unused parameter from execute_extension_script(). 2025-02-13 16:47:42 -06:00
executor Fix assertion on dereferenced object 2025-02-14 11:50:56 +01:00
foreign Update copyright for 2025 2025-01-01 11:21:55 -05:00
jit Simplify executor's handling of CaseTestExpr & CoerceToDomainValue. 2025-01-30 13:21:42 -05:00
lib Update copyright for 2025 2025-01-01 11:21:55 -05:00
libpq Remove unnecessary (char *) casts [mem] 2025-02-12 08:50:13 +01:00
main Update copyright for 2025 2025-01-01 11:21:55 -05:00
nodes Move CompareType to separate header file 2025-02-02 08:11:57 +01:00
optimizer Track unpruned relids to avoid processing pruned relations 2025-02-07 17:15:09 +09:00
parser Virtual generated columns 2025-02-07 09:46:59 +01:00
partitioning Track unpruned relids to avoid processing pruned relations 2025-02-07 17:15:09 +09:00
po Update copyright for 2025 2025-01-01 11:21:55 -05:00
port Update copyright for 2025 2025-01-01 11:21:55 -05:00
postmaster Eagerly scan all-visible pages to amortize aggressive vacuum 2025-02-11 13:53:48 -05:00
regex Support PG_UNICODE_FAST locale in the builtin collation provider. 2025-01-17 15:56:30 -08:00
replication Remove unnecessary (char *) casts [xlog] 2025-02-13 10:57:07 +01:00
rewrite Virtual generated columns 2025-02-07 09:46:59 +01:00
snowball Update copyright for 2025 2025-01-01 11:21:55 -05:00
statistics Lock table in ShareUpdateExclusive when importing index stats. 2025-02-10 12:58:13 -08:00
storage Remove obsolete comment. 2025-02-14 13:16:05 +13:00
tcop Remove unnecessary (char *) casts [mem] 2025-02-12 08:50:13 +01:00
tsearch Add is_analyze parameter to vacuum_delay_point(). 2025-02-11 16:38:14 -06:00
utils Describe special values in GUC descriptions more consistently. 2025-02-14 10:44:30 -06:00
.gitignore
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls.mk Return yyparse() result not via global variable 2025-01-24 06:55:39 +01:00