Re: [PATCH] pg_bsd_indent: improve formatting of multiline comments
Aleksander Alekseev <aleksander@tigerdata.com>
From: Aleksander Alekseev <aleksander@tigerdata.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Nathan Bossart <nathandbossart@gmail.com>,
Chao Li <li.evan.chao@gmail.com>, Arseniy Mukhin <arseniy.mukhin.dev@gmail.com>,
Bruce Momjian <bruce@momjian.us>, Michael Paquier <michael@paquier.xyz>
Date: 2025-12-12T11:32:13Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
pgindent: improve formatting of multiline comments.
- 60f9467c3834 19 (unreleased) landed
-
Adjust style of some debugging macros.
- ba1e14134a77 19 (unreleased) landed
-
Fix a couple of comments.
- 123661427b97 19 (unreleased) landed
-
Add IGNORE NULLS/RESPECT NULLS option to Window functions.
- 25a30bbd4235 19 (unreleased) cited
-
Split WaitEventSet functions to separate source file
- 393e0d231405 18.0 cited
Hi Nathan, > [...] > I think we should also figure out what we want to do for things like this: > > ****************************************************************************** > - This file contains routines that can be bound to a Postgres backend and > - called by the backend in the process of processing queries. The calling > - format for these routines is dictated by Postgres architecture. > + * This file contains routines that can be bound to a Postgres backend and > + * called by the backend in the process of processing queries. The calling > + * format for these routines is dictated by Postgres architecture. > ******************************************************************************/ > > Could we modify the patch to leave these kinds of comments alone? I see 3 files that have this comment: - src/tutorial/complex.c - contrib/seg/seg.c - contrib/cube/cube.c Note that cube.c is not affected by the new version of pgindent, because the comment starts with `/****`. Such comments are kept as is. seg.c and cube.c use a mixed format. The comments start with `/*` followed by ` *` lines but several lines below don't have ` *` in the beginning. I don't instantly see a way to process this situation in pgindent. We can either let it modify these comments, or alternatively change the first lines of the comments from `/*` to `/**`. -- Best regards, Aleksander Alekseev