Re: postgresql.conf.sample tab width

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: postgresql.conf.sample tab width
Date: 2025-11-14 21:30:07
Message-ID: aRefX8JOs_3VbErE@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
v2-0001-Convert-tabs-to-spaces-in-postgresql.conf.sample.patch text/plain 63.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-11-14 21:34:08 Re: postgresql.conf.sample tab width
Previous Message jian he 2025-11-14 21:24:59 Re: ON CONFLICT DO SELECT (take 3)