pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add "-c name=value" switch to initdb.
Date: Wed, 22 Mar 2023 17:49:13 +0000
Message-ID: <E1pf2aH-004raS-Cs@gemulon.postgresql.org> (raw)

Add "-c name=value" switch to initdb.

This option, or its long form --set, sets the GUC "name" to "value".
The setting applies in the bootstrap and standalone servers run by
initdb, and is also written into the generated postgresql.conf.

This can save an extra editing step when creating a new cluster,
but the real use-case is for coping with situations where the
bootstrap server fails to start due to environmental issues;
for example, if it's necessary to force huge_pages to off.

Discussion: https://postgr.es/m/2844176.1674681919@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3e51b278db6a4e2f50f3f6b9edc9667af1f934fd

Modified Files
--------------
doc/src/sgml/ref/initdb.sgml   |  17 ++
src/bin/initdb/initdb.c        | 474 +++++++++++++++++++++++++++++++----------
src/bin/initdb/t/001_initdb.pl |  11 +-
3 files changed, 385 insertions(+), 117 deletions(-)



Message-ID: <E1pf2aH-004raS-Cs@gemulon.postgresql.org>
Permalink:  ../E1pf2aH-004raS-Cs@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pf2aH-004raS-Cs@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add "-c name=value" switch to initdb.
  In-Reply-To: <E1pf2aH-004raS-Cs@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox