Improve defaults shown in postgresql.conf.sample and pg_settings
authorBruce Momjian <bruce@momjian.us>
Mon, 23 Aug 2021 16:33:38 +0000 (12:33 -0400)
committerBruce Momjian <bruce@momjian.us>
Mon, 23 Aug 2021 16:33:38 +0000 (12:33 -0400)
commitf7bda63a487c542949c8150de8e63bc728e5e31e
tree7cc1cb5622e0869daa5ef130463ef6aa2abe74b0
parenta3fcbcda7505e9079cec95e7209cde4f5d5c8bd8
Improve defaults shown in postgresql.conf.sample and pg_settings

Previously, these showed unlikely default values.  The new default value
128MB (since PG 10) is not always accurate since initdb tries several
increasing values, but it likely to be accurate.

Reported-by: Zhangjie <zhangjie2@fujitsu.com>
Discussion: https://postgr.es/m/TYWPR01MB7678772FD8640C404F1DC882F9079@TYWPR01MB7678.jpnprd01.prod.outlook.com

Author: Zhangjie

Backpatch-through: master
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/bin/initdb/initdb.c