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 1wD4he-002Ztm-2v for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Apr 2026 18:11:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wD4he-001Idn-0M for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Apr 2026 18:11:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wD4hd-001Ide-2e for pgsql-hackers@lists.postgresql.org; Wed, 15 Apr 2026 18:11:05 +0000 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wD4hb-00000001GXx-2Xrr for pgsql-hackers@lists.postgresql.org; Wed, 15 Apr 2026 18:11:05 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 7D5BE7A026E; Wed, 15 Apr 2026 14:11:01 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 15 Apr 2026 14:11:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm1; t=1776276661; x=1776363061; bh=m6P2p4ghWHMFFfvsukkuM4cQYVGu9nVS 7oHhI+OP2R8=; b=R6Mn8OxcNxPbXhN0YfSNt7nf3S7fLUmLaBtK4fVjHsvjwt+P Yr0IZgkIU9rNU2njBOq39PpfaFcGlUplmVbKHusUxSg9aLGx6mEgsLJXdF7K3QyQ UWmhBxXwIL3tiTvWFP363pbK8KSHs7MgvMeKILflvODkXUVb07ufYEfKj1EbAd0D HvzvAd+TK1LHxa7RFmR2o159OcVb84P1DDglGYjatE05wSxx6NLSk0VIL2UIGvyL KfSOH8jBoBzph1BXP7EbuYvrlErxOuuwwNFzSLQjLvpK+zj9UGhP+tdEGbYM9hcW MFObqLq/M4ZjVfhMz0tFeiHsYe2Ei79PyOh82A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1776276661; x= 1776363061; bh=m6P2p4ghWHMFFfvsukkuM4cQYVGu9nVS7oHhI+OP2R8=; b=a o+iX3bx37EhPN7QXDeCLla5okPEFqGqMTltjlw1sTOzczEYS8WcqewPBsuzKLC9k NWVAxf8SjbrPQ2VFMeeNRapurBODd1Rs6fnZevWPpw2I/Yy1AIpFBP9u0BPwJ2EG 38p0NfOU269R4SYtiUYVllx6fYZI00fZWzFcxe5tXLo/XYWYV1CPIAoa8c8g+qSj pOmDz3daLugdhgsnU74LGrwWhvsN/KPxbzlRFqytTDaeNsIqirqazt1BpQn3zEhS DvTSxx1GNHs2QcpJgLlp3Vhx0Elshke7YjzsKcT5Ta8cpDacGk9uveGn+LT4HyVL YR80cv0Sl0SiiGZ/3gWgw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdeggeejkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomheprfgvthgvrhcu gfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqeenuc ggtffrrghtthgvrhhnpefgjedthfekfedtuefgieelheetleejgefhueeltdfhueetvdff udekfeejhfegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdpnhgspghrtghpthhtohep fedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepnhgrthhhrghnuggsohhsshgrrh htsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprghnughrvghssegrnhgrrhgriigvlhdr uggvpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtgh hrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 15 Apr 2026 14:11:00 -0400 (EDT) Message-ID: Date: Wed, 15 Apr 2026 20:10:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Documenting coding style To: Nathan Bossart , Andres Freund Cc: PostgreSQL Hackers References: <3579709.1775151816@sss.pgh.pa.us> <63de1553-829a-488d-8ee0-976afb8dd32c@vondra.me> <3586483.1775155672@sss.pgh.pa.us> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10.04.26 16:49, Nathan Bossart wrote: >> I wonder if we should move the coding style section out of sgml into a >> top-level CODING_STYLE.md or something like that. >> >> And then obviously add things like Size being deprecated. > Unless we're going to actually remove the typedef in the near future, I'm > not sure I'd support even marking it deprecated. If we're going to keep it > around indefinitely, that's just going to become another source of nitpicks > when new contributors inevitably copy/paste some code from the aughts. A > style page makes the situation a little better, but it's yet another thing > that folks have to remember. In this case, if one wanted to do something, one should at least enhance the code comment for Size, which is currently very bare and doesn't explain why the type exists. As some counterexamples, some of which I wrote: /* * Pointer * Variable holding address of any memory resident object. * (obsolescent; use void * or char *) */ typedef void *Pointer; /* Historical names for types in . */ typedef int8_t int8; ... * We require C11 and C++11, so static_assert() is expected to be there. * StaticAssertDecl() was previously used for portability, but it's now just a * plain wrapper and doesn't need to be used in new code.