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

From Nazir Bilal Yavuz
Subject Re: pgindent to ignore build directories
Date
Msg-id CAN55FZ0dssB2M7Tg1JdCXZb6oigraHwQ2dyRA_1NoxBORYryUQ@mail.gmail.com
Whole thread
In response to Re: pgindent to ignore build directories  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
Hi,

On Thu, 1 Oct 2026 at 10:04, Peter Eisentraut <peter@eisentraut.org> wrote:
>
> On 24.09.26 17:43, Nazir Bilal Yavuz wrote:
> > On Thu, 24 Sept 2026 at 17:29, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >>
> >> Peter Eisentraut <peter@eisentraut.org> writes:
> >>> A subproblem is that if pgindent fails on many files, it doesn't clean
> >>> up after itself but leaves many pgsrc*.BAK files lying around.  The
> >>> first patch fixes that.
> >>
> >> I object to this patch.  src/tools/pgindent/README documents that
> >> the presence of those files is useful for detecting where pgindent
> >> failed.  Without them there's not an easy signal.
> >
> > I remember being frustrated with too many pgsrc*.BAK files but that
> > was when pgindent processed the build folder. I think we might not
> > need 0001 after 0003.
>
> Here is an updated patch that just implements automatic skipping of
> build directories.  It's quite compact and seems universally useful.

I agree. I tested v2 with both meson and autoconf and it works
correctly, v2 LGTM.


-- 
Regards,
Nazir Bilal Yavuz
Microsoft



pgsql-hackers by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: SSI: ON CONFLICT DO SELECT takes no predicate lock on the returned row
Next
From: Jakub Wartak
Date:
Subject: Re: [PATCH] Reduce LWLockWaitListLock() cache-line contention with adaptive spin reads