Re: [PATCH] pg_bsd_indent: improve formatting of multiline comments
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Álvaro Herrera <alvherre@kurilemu.de>, Aleksander Alekseev <aleksander@tigerdata.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, 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-12T18:37:23Z
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
Nathan Bossart <nathandbossart@gmail.com> writes: > Yeah, I tried to find a bug in it recently and could do little more than > trial-and-error in the areas that seemed vaguely close (with no success). > I'm generally critical of efforts to rewrite things from scratch, but this > might be a case where it's the better option. There's something to be said for that approach. Presumably, a rewrite could be smaller because we wouldn't need to support all the options bsd_indent has, just the behavior PG wants. I wonder whether it'd be possible to get rid of the need for typedefs.list while at it. That might be impractical --- IIRC, C syntax is ambiguous if you don't know which identifiers are typedefs. Still, I believe there are other indenters that get away without that knowledge, so maybe the ambiguity isn't fatal for indentation purposes. With or without that nice-to-have, it'd be a lot of work with not all that much payoff, so I'm finding it hard to recommend that somebody go after this. But maybe someone will find it irresistible to scratch that itch. regards, tom lane