Re: postgresql.conf.sample tab width - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: postgresql.conf.sample tab width
Date
Msg-id aRefX8JOs_3VbErE@nathan
Whole thread Raw
In response to Re: postgresql.conf.sample tab width  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: postgresql.conf.sample tab width
List pgsql-hackers
On Fri, Nov 14, 2025 at 03:25:15PM -0500, Tom Lane wrote:
> I seem to recall a proposal that the best fix is to not use tabs
> at all in postgresql.conf.sample.  That seems like a good way out
> to me.  I think we could fix .gitattributes so that "git diff --check"
> would verify no tabs, but I've not looked into details.

I don't see a way in .gitattributes to check for _any_ tabs in a file, just
for beginning-of-line indentation with tabs.  But it's easy enough to add a
check in the TAP test.

-- 
nathan

Attachment

pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: ON CONFLICT DO SELECT (take 3)
Next
From: Tom Lane
Date:
Subject: Re: postgresql.conf.sample tab width