pgsql: initdb: Pad rewritten GUC lines with spaces instead of tabs.

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: initdb: Pad rewritten GUC lines with spaces instead of tabs.
Date: 2026-09-02 14:23:52
Message-ID: E1x1lsV-00000003Bku-3eYl@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

initdb: Pad rewritten GUC lines with spaces instead of tabs.

Commit f63ae72bbc converted postgresql.conf.sample to spaces so
that it lines up at any tab width, but replace_guc_value() still
pads with tabs when it re-aligns the trailing comment of a
rewritten setting. Fix that.

Oversight in commit f63ae72bbc.

Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Discussion: https://postgr.es/m/apRezMywHRuR5h-6%40nathan
Backpatch-through: 19

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d870be195b3b7ee224a58ff562c1f1c252a96814

Modified Files
--------------
src/bin/initdb/initdb.c | 31 +++++--------------------------
1 file changed, 5 insertions(+), 26 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2026-09-02 14:53:42 pgsql: Stabilize xid_wraparound/t/002_limits.pl test.
Previous Message Alexander Korotkov 2026-09-02 12:50:25 pgsql: postgres_fdw: Fix "may be used uninitialized" warning in foreign