postgresql/src/include
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 XLogRegisterData, XLogRegisterBufData void * argument for binary data 2025-02-13 10:33:14 +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 Update copyright for 2025 2025-01-01 11:21:55 -05:00
catalog Add cost-based vacuum delay time to progress views. 2025-02-11 16:38:14 -06:00
commands Add cost-based vacuum delay time to progress views. 2025-02-11 16:38:14 -06:00
common Show more-intuitive titles for psql commands \dt, \di, etc. 2025-02-05 12:45:58 -05:00
datatype Avoid using timezone Asia/Manila in regression tests. 2025-01-20 15:47:53 -05:00
executor Implement new optimization rule for updates of expanded variables. 2025-02-11 12:34:59 -05:00
fe_utils Specify the encoding of input to fmtId() 2025-02-10 10:03:37 -05:00
foreign Update copyright for 2025 2025-01-01 11:21:55 -05:00
jit Fix grammatical typos around possessive "its" 2025-01-29 14:39:14 +07:00
lib Add new StringInfo APIs to allow callers to specify the buffer size. 2025-01-11 08:23:46 +09:00
libpq Make TLS write functions' buffer arguments pointers const 2025-02-09 12:43:30 +01:00
mb Add pg_encoding_set_invalid() 2025-02-10 10:03:37 -05:00
nodes Allow extension functions to participate in in-place updates. 2025-02-11 12:49:34 -05:00
optimizer Add OLD/NEW support to RETURNING in DML queries. 2025-01-16 14:57:35 +00:00
parser Virtual generated columns 2025-02-07 09:46:59 +01:00
partitioning Move PartitionPruneInfo out of plan nodes into PlannedStmt 2025-01-30 11:57:32 +09:00
pch Update copyright for 2025 2025-01-01 11:21:55 -05:00
port Fix comment about AVX-512 popcount support. 2025-01-22 14:11:37 -06:00
portability Update copyright for 2025 2025-01-01 11:21:55 -05:00
postmaster Introduce autovacuum_vacuum_max_threshold. 2025-02-05 15:48:18 -06:00
regex Update copyright for 2025 2025-01-01 11:21:55 -05:00
replication Rename RBTXN_PREPARE to RBTXN_IS_PREPARE for better clarification. 2025-02-12 16:55:00 -08: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 Update copyright for 2025 2025-01-01 11:21:55 -05:00
storage Remove unnecessary (char *) casts [checksum] 2025-02-12 08:59:48 +01:00
tcop Update copyright for 2025 2025-01-01 11:21:55 -05:00
tsearch Update copyright for 2025 2025-01-01 11:21:55 -05:00
utils Describe special values in GUC descriptions more consistently. 2025-02-14 10:44:30 -06:00
.gitignore Use <stdint.h> and <inttypes.h> for c.h integers. 2024-12-04 15:05:38 +13:00
c.h IWYU widely useful pragmas 2025-01-15 18:57:53 +01:00
fmgr.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
funcapi.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
getopt_long.h IWYU widely useful pragmas 2025-01-15 18:57:53 +01:00
Makefile Use <stdint.h> and <inttypes.h> for c.h integers. 2024-12-04 15:05:38 +13:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
miscadmin.h Use "ssize_t" not "long" in max_stack_depth-related code. 2025-01-30 16:44:47 -05:00
pg_config.h.in Use <stdint.h> and <inttypes.h> for c.h integers. 2024-12-04 15:05:38 +13:00
pg_config_manual.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_getopt.h IWYU widely useful pragmas 2025-01-15 18:57:53 +01:00
pg_trace.h IWYU widely useful pragmas 2025-01-15 18:57:53 +01:00
pgstat.h Add data for WAL in pg_stat_io and backend statistics 2025-02-04 16:50:00 +09:00
pgtar.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pgtime.h Seek zone abbreviations in the IANA data before timezone_abbreviations. 2025-01-16 14:11:19 -05:00
port.h Avoid breaking SJIS encoding while de-backslashing Windows paths. 2025-01-29 14:24:36 -05:00
postgres.h IWYU widely useful pragmas 2025-01-15 18:57:53 +01:00
postgres_ext.h IWYU widely useful pragmas 2025-01-15 18:57:53 +01:00
postgres_fe.h IWYU widely useful pragmas 2025-01-15 18:57:53 +01:00
varatt.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
windowapi.h Update copyright for 2025 2025-01-01 11:21:55 -05:00