Re: pgindent to ignore build directories

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgindent to ignore build directories
Date: 2026-10-01 07:04:25
Message-ID: 64819c8b-bb0a-4013-916d-3df95c537470@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 24.09.26 17:43, Nazir Bilal Yavuz wrote:
> On Thu, 24 Sept 2026 at 17:29, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>
>> Peter Eisentraut <peter(at)eisentraut(dot)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.

Attachment Content-Type Size
v2-0001-pgindent-Skip-build-directories-automatically.patch text/plain 3.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Haruna Miwa 2026-10-01 07:06:53 [PATCH] psql: avoid CREATE command completion after GRANT/REVOKE CREATE
Previous Message Tatsuo Ishii 2026-10-01 06:49:12 Re: Material node can report incorrect "Maximum Storage" in EXPLAIN