Re: pgindent versus struct members and typedefs
Álvaro Herrera <alvherre@kurilemu.de>
From: Álvaro Herrera <alvherre@kurilemu.de>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Chao Li <li.evan.chao@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Nathan Bossart <nathandbossart@gmail.com>,
Rahila Syed <rahilasyed90@gmail.com>, Robert Haas <robertmhaas@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-12-03T17:25:27Z
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
On 2025-Dec-03, Andrew Dunstan wrote: > +1. One of the things I find particularly un-aesthetic is having some > branches of an if statement with braces and some without. We have lots of > cases of that, but I try to avoid it. I actually prefer that style: when there are only two branches, and the other branch of the if is long, I put the short one first without braces, and then braces around the long "else" one. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "The eagle never lost so much time, as when he submitted to learn of the crow." (William Blake)