pgsql: Make pg_bsd_indent add a space between comma and period.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make pg_bsd_indent add a space between comma and period.
Date: 2026-05-13 14:22:20
Message-ID: E1wNATc-000Ltt-0P@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make pg_bsd_indent add a space between comma and period.

Formatting of variadic functions and struct literals with named fields
used to be ugly due to pg_bsd_indent treating period as always being a
binary operator. After a comma, it's not that, so insert a space.

Bump pg_bsd_indent's version so that people who use out-of-tree
copies will know they need to update. (This also covers the other
pg_bsd_indent behavioral change introduced in a3e6beba6.)

Author: Andreas Karlsson <andreas(at)proxel(dot)se>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/c3327be8-09e2-46a1-88b4-228a339d6916@proxel.se

Branch
------
master

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

Modified Files
--------------
src/tools/pg_bsd_indent/args.c | 2 +-
src/tools/pg_bsd_indent/indent.c | 2 ++
src/tools/pg_bsd_indent/tests/declarations.0.stdout | 2 +-
src/tools/pg_bsd_indent/tests/struct.0 | 2 ++
src/tools/pg_bsd_indent/tests/struct.0.stdout | 2 ++
src/tools/pgindent/pgindent | 2 +-
6 files changed, 9 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2026-05-13 14:34:23 pgsql: Pre-beta mechanical code beautification, step 1: run pgindent.
Previous Message Nathan Bossart 2026-05-13 14:11:56 pgsql: pgindent: Fix spacing after != when member name matches typedef.