postgresql.conf.sample tab width
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: pgsql-hackers@postgresql.org
Date: 2025-11-14T20:13:04Z
Lists: pgsql-hackers
Attachments
- v1-0001-Change-default-tab-width-to-8.patch (text/plain)
I noticed that GitHub is using 4-space tabs for this file [0], presumably due to this [1] recent change. I'm not aware of an official policy for this file, but it seems to be written for 8-space tabs. One way to fix this is to set our default tab width to 8 in .gitattributes/.editorconfig (see attached patch). AFAICT that doesn't affect source code files. We could also add a special rule for postgresql.conf.sample, or we could even convert it to 4-space tabs. Any druthers? [0] https://github.com/postgres/postgres/blob/master/src/backend/utils/misc/postgresql.conf.sample [1] https://github.blog/changelog/2025-08-07-default-tab-size-changed-from-eight-to-four/ -- nathan
Commits
-
Check for tabs in postgresql.conf.sample.
- 379f0e9f72b3 19 (unreleased) landed
-
Switch from tabs to spaces in postgresql.conf.sample.
- f63ae72bbcea 19 (unreleased) landed
-
Update .editorconfig and .gitattributes for postgresql.conf.sample.
- aeebb49b7cfe 19 (unreleased) landed