Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vK0AX-00BU2b-0Q for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Nov 2025 20:13:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vK0AT-007vbc-1S for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Nov 2025 20:13:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vK0AT-007vbU-0U for pgsql-hackers@lists.postgresql.org; Fri, 14 Nov 2025 20:13:13 +0000 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vK0AO-0079ih-0s for pgsql-hackers@postgresql.org; Fri, 14 Nov 2025 20:13:12 +0000 Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-94863b3620cso187966339f.3 for ; Fri, 14 Nov 2025 12:13:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763151187; x=1763755987; darn=postgresql.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=MFlqtJkqGQ+9DbmSSdyjd/1VRsjqOY1H7AyZRSbgT4k=; b=ICSJZ2dSRW7Fcn0SScwymIn7Uv2VZzrK2ujPhbLy2niborKp8+U1N4VCX3Jorg4HKF 2qmEekHOK1GFuColYcdgLOL+GZMnpuiZ2T9azojD58YeHH6r8Te1iE3D/qocsz6L5QOp ln53AiieXfD4rjvw+RVvkgqnwUQS32Eu/EEF7vKKTZjhMYAbsx10byhRF4fXZXv7JGm/ oYaNJUSo+YQp/ElU/CFXHdUEEXjRVe13RWeNWVC3raUt8EMhdC7k7xXDgbyZ1YoXQVlf mpzB8nwAsVMa9m7Q6UeDVVkfg3M9JO9Boz5kj8Tk3Qjuu0K1tJsQvtLuJFGOpUMkZyBF veQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763151187; x=1763755987; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MFlqtJkqGQ+9DbmSSdyjd/1VRsjqOY1H7AyZRSbgT4k=; b=bB+H+OLpEVHiAyZL7EKqA4kfHOyLhwlOh3IcrTugUF6QGVF3E3wfejmHafVJ3/iKwo d/NSrhYIOsEZXY9xS85pFmCxqO6ne27dTkG5JDBGbO3JLhJapzJLodd8r4BJjLRKfMau KMI+L5/H2wC5AGJzlboSzzU0xYp9bNHq0oL2IHYdsHGVfWnBIRO3U0nCPnC3R1uLMqN0 6yiOF0P++vDHteFlmxzqg8lKgkodieTNDlW52UblEUhrsbzkOBbfciAk4SroVWZ3qiWd ugmn6nXuIRE9bQ/iVy5hPRBq0rlMgMr6VAC0MPwWyn79Qsp26dNsPFj5ZWiEKefl0VWZ rGwA== X-Gm-Message-State: AOJu0YzCdD9fQrb/7e3mI+RU9CZpns9Hkb7GpVNWPIe264szq0NUSjcc 39PrmMdLaL5yNeKElXN7i0GuPbO4ksIo5bPpHvraPooXvXgNJzm3D6ULiF6flw== X-Gm-Gg: ASbGncv258UDQ31A9TZHzVerGv6VKvNwQlVymUIlUq+h2/T6clcvINvcn8mT65fRFQr aLcyCDmRfJiAszoEED3ssUT16fx9mcdhIWkhrGECb3mikzAkEFHo908nmEzt2DXn92/eHcvkt4N c1YhAKH7xA09XQqEjA43eY2C48rc+XZMrzWZPTw2ThmrB9UNrJ7Nkt/miIRRyFFqnWvoZPAJXNt pvAzDAR3y6Px0QvJmhtFECoNpFCAbrbQdEacAI0DsLfE9CtdSvhPi+PI8Ld7+Kz7b3mcTcx1IIN sdv4nxbvc5eXR6wNxGst6vASh+P5VHi7IMEypz0anHlKabRQBfpIwO25Pp2U0WbReL+fctlUrJC 2xJ2bw15tBpe3fbkQvrZNjensOCVRYCBk4xRHFhM/r9rmX5j0DjvMmWd0zVyEgkpkz4zdZ9Np1H KYp5zFqul9wKGbuEO4/1sOn369hrJ0nZ3NXH6ssf3cCgd/34aWehP9mdJ4WDvJpqnd2hafo8S8Y sCE X-Google-Smtp-Source: AGHT+IHKVWEVkrNZkxalU4FLJcNUnpavEYnI/46gkpAp4BEhSha7nZdv+L13PGOC/0EBbbCtpvKRCQ== X-Received: by 2002:a05:6602:2b8c:b0:940:dddb:701c with SMTP id ca18e2360f4ac-948e0d62b30mr591994439f.10.1763151187046; Fri, 14 Nov 2025 12:13:07 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-948d2b7f789sm272960739f.7.2025.11.14.12.13.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Nov 2025 12:13:06 -0800 (PST) Date: Fri, 14 Nov 2025 14:13:04 -0600 From: Nathan Bossart To: pgsql-hackers@postgresql.org Subject: postgresql.conf.sample tab width Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="gHLBJeebIjretGDl" Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --gHLBJeebIjretGDl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --gHLBJeebIjretGDl Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=v1-0001-Change-default-tab-width-to-8.patch From c34c6232589e7d951d447b201fbd97cc8003c826 Mon Sep 17 00:00:00 2001 From: Nathan Bossart Date: Fri, 14 Nov 2025 14:03:55 -0600 Subject: [PATCH v1 1/1] Change default tab width to 8. --- .editorconfig | 2 +- .gitattributes | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index e20d15d4533..5f6493c31b7 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,7 +7,7 @@ indent_size = tab trim_trailing_whitespace = true insert_final_newline = true indent_style = unset -tab_width = unset +tab_width = 8 [*.[chly]] trim_trailing_whitespace = true diff --git a/.gitattributes b/.gitattributes index 4e26bbfb145..58fd4444b58 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,6 @@ # IMPORTANT: After updating this file, also run src/tools/generate_editorconfig.py -* whitespace=space-before-tab,trailing-space +* whitespace=space-before-tab,trailing-space,tabwidth=8 *.[chly] whitespace=space-before-tab,trailing-space,indent-with-non-tab,tabwidth=4 *.cpp whitespace=space-before-tab,trailing-space,indent-with-non-tab,tabwidth=4 *.pl whitespace=space-before-tab,trailing-space,tabwidth=4 -- 2.39.5 (Apple Git-154) --gHLBJeebIjretGDl--