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.