Re: pgindent versus struct members and typedefs
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Chao Li <li.evan.chao@gmail.com>, Rahila Syed <rahilasyed90@gmail.com>,
Robert Haas <robertmhaas@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-05-06T03:43:39Z
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: Fix spacing after != when member name matches typedef.
- a3e6beba60ec 19 (unreleased) landed
-
Exclude fmgrprotos.h from pgindent processing.
- c4133ec169df 14.0 cited
Nathan Bossart <nathandbossart@gmail.com> writes: > For fun, I spent some time with an AI tool to develop the attached fix for > this problem. The explanation seems reasonable to me, although I am by no > means a pgindent expert. When I looked at this in December, I did find > this similar commit from upstream [0], but I failed to make the connection > with last_u_d. 0002 is the result of a pgindent run after applying 0001. > You'll notice that it fixes the exact set of cases I found with grep > upthread. Those changes are clearly improvements. I'm too tired to investigate right now, but I wonder if we should adopt the upstream fix you mention? (Or more generally, other changes they made since we forked?) regards, tom lane