| From: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | postgresql.conf.sample tab width |
| Date: | 2025-11-14 20:13:04 |
| Message-ID: | aReNUKdMgKxLqmq7@nathan |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Change-default-tab-width-to-8.patch | text/plain | 1.2 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Masahiko Sawada | 2025-11-14 20:19:47 | Re: Make COPY format extendable: Extract COPY TO format implementations |
| Previous Message | Nathan Bossart | 2025-11-14 19:46:48 | Re: Uncommented GUC in postgresql.conf.sample |