Re: Add "format" target to make and ninja to run pgindent and pgperltidy
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Cc: Jelte Fennema-Nio <postgres@jeltef.nl>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Daniel Gustafsson <daniel@yesql.se>
Date: 2025-12-31T15:26:44Z
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: Always clean up .BAK files from pg_bsd_indent
- 6857947db5bb 19 (unreleased) landed
-
pgindent: Clean up temp files created by File::Temp on SIGINT
- 801de0bd4433 19 (unreleased) landed
Ashutosh Bapat <ashutosh.bapat.oss@gmail.com> writes: > On Wed, Dec 31, 2025 at 5:06 PM Jelte Fennema-Nio <postgres@jeltef.nl> wrote: >> This tries to make running formatting a lot easier for committers, but >> primarily for new contributors. > I generally like the idea. Since perltidy is not enforced regularly > (like pgindent), running it usually ends up modifying files which are > not part of the patch. So I avoid it if not necessary. Do you propose > to make it optional? The other obstacle is that not everybody will have the right version of perltidy installed, but using some other version will create a whole lot of extraneous noise. On the whole I'd recommend not trying to automate the perltidy step yet. Cost/benefit is just not very good. On the substance of the patch: I wonder whether we could make things more reliable by using git metadata to figure out which .h and .c files to point pgindent at. regards, tom lane