Re: pgindent to ignore build directories - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: pgindent to ignore build directories
Date
Msg-id CAGECzQS_vv5ixC4AmaOoffqgk1D+3QW9Ugw=Tzd=8ND_CFw7uw@mail.gmail.com
Whole thread
In response to Re: pgindent to ignore build directories  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, 28 Sept 2026 at 05:25, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> And even if it
> prints just what you need to know on stderr, that's transient data
> that has probably scrolled off your terminal window by the time you
> finished with the first problem.

That seems easily solved by piping stderr to a file (e.g. using tee):

src/tools/pgindent/pgindent . 2>| tee pgindent-errors.log

Another option is to simply rerun pgindent again after fixing a file
to get the rest of the failing files.

I'm personally much more annoyed by a bunch of random garbage files
being created in my working directory than by having to do either of
those when I want to run pgindent on my full tree.



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Translation of the NextOID message in pg_controldata
Next
From: solai v
Date:
Subject: Re: NOT NULL NOT ENFORCED