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 1w3078-000nzS-1q for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 23:15:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w3077-00FJTk-0w for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 23:15:45 +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 1w3076-00FJTc-2y for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2026 23:15:45 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w3073-00000000RWM-2xII for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2026 23:15:44 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-b9358bc9c50so39144066b.1 for ; Wed, 18 Mar 2026 16:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773875742; cv=none; d=google.com; s=arc-20240605; b=N4R19R1hNFfS2j/uA10cPOUiFRUsLN1LmVQjtfsbRsd0fBx10Ekp4JtM/XoFgg2PWV S43xUkSqOXFcptZhFGyWy20i8Dn9ITDOob/MnYe5yhrva6rPkbtgBgN1MUEQfVKpUx1O Ldy7I+dGitOYr0LhIyyWBDIEPatQwfvhpCR8Y04mpbYI0jFpz1TwLxmyMC0BWOv/xPhf SQpYJsaNEmOgh/O9cyV6psbAoyhs3x1PeuicY5Sm6v7b3pUD6IJPFD/6460a2j5wMkj/ 37mG5INOlBjI4BzHSYSUQAMtAI2xQ077YSlq/hs6Li4JgGHV9U5r+Wo/gDWk+pMzOzqw /+yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hqZLZBKmAn4S8WvSy9+wS5+Ji+09jvEbILFZ/dQf7fE=; fh=+cvb/y84QsiHyxCzomz5/ujKNMSnCU9fA2mLOHFdKWg=; b=KeSn6X2/CPVoM4wC2efnvbWR/JUEXpPBXwRbVgn6sx0h5tVj9CclsnXm6l8nMwkdKQ rW2gUvI3TYbZ/ObfJVxuIOV6jte9k/6Duo6S3dkiVrL8/FS3zYH+lmslGmvbJWvH8Xui zYNQmSKxVaYN1OhrIrh7y2gv7+3Dp7vvgM8wo48CoJfwQ+Jwi1gkyzMQco5iOHxXgx7/ pqWhWmeO/cNmAGLSkX/ciaOqpWJO0wxLEuMRj+wJr6QuJVg5N165LfeKh/eBZtZHBgzo S/I6Y2rMxpmgI7KFfwlaQZn9HFYVCeOzw4hGeiC8HgN6BhUNgMU4Roua0eqvvVfPNQVj X5tg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773875742; x=1774480542; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hqZLZBKmAn4S8WvSy9+wS5+Ji+09jvEbILFZ/dQf7fE=; b=YXEFSwneOuyoVUZD5gZeX0zRczZG6SvXj5kAU5sNMK2YKiTvnrPWUNfwBhW5yqCuUe afK+CdQGBFO821EMJJoPEL5VyQycsAL3Tb2zcmJYX13mjk6ISw1S1AU/n+PVBxrFgQEX 5nUh7nk9DrjcFX+ivOY7kTIDjrtv1r0j9anBh7x7uHnWOov3qsCKI9r1sLgCgOWCtzvZ Cwyk2LlIOvajnRC6HVUMnvxh0mvghn34X35vBaP0ujTqJ6YcJP55YEyChdRuQMlcJ4vo Az4+oONzAgexuGpQQaKrRg98CMJkZBfHFPVr5M4PbtEunc096fZv3QynNJXswS9fgzAC WOhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773875742; x=1774480542; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=hqZLZBKmAn4S8WvSy9+wS5+Ji+09jvEbILFZ/dQf7fE=; b=FS8ifYDD4+vMYwlAevvWziWha6IOL94cSCnmfsdeTMj73svZWcQQ2rl37cnjzJYKI4 sLsKRy+4kU25VR4LPOL+WC4AA/1+98OgeNOCEE8u6inybtzogfDfLuuOshbnxCjC2Qsm 4ADxdgNh5aliG5fohCeo5YQOsznDItZ4UDIAX6iZqkDKroePGICbiWWmwy0AQ7D4z+Ed DoIBeGM06SzCQH13iPffStUeSzC8PIS4uFww+L5PanCrRc/UwN4X33PxwZXl+UJCc6kY USU+o4tPaGdRiPR7Dz2wtJfflpWeIaDkAMNBM3sCCKukdpmovHHNcHlr1dY7Vzw9tz56 pi8g== X-Forwarded-Encrypted: i=1; AJvYcCUv5gZD5IKwMkA1fjAjSLt/NFG9PKVtzO0/hBN1LQBBtotzaan8UJJqAh6wP46uFbtsYBeOJEc7oujm5Pu4@lists.postgresql.org X-Gm-Message-State: AOJu0YyU9LXoaz4fUg/YCoq79pIQlhCvHa8duWsaGdTRoNnxmRjwFmFx EE/ePre6x1QJiA1bvqRM1UmHhBQnwrocHqGTA14KmoiOUoO1XvtiY2Ebu/Z6blLwK6qWbERZQ+Q 64oI78gc4AMQWnYekJCIpn6TiiIdJfnE= X-Gm-Gg: ATEYQzz0GKc7J+IqooubJVha547yflDTEUrTm8ol0ubhMTdYhtKs5hi6nYJZTrB8giL RdMpG30CpwcgEOS1os7pT1LkbAhzQ6GXUtuKLSQrFhBGvKSmFVT0ekrUD/2ozBkOr3+MPhaegzI X5dyAQmt6SZ0YPrQbVq4powE4VsCzZFYMyq9ESyAa40x3EiCb0e8qaHLEjxKHP12o5T2EZsU0Ud NGB6aDKaoWBa2zojN5lihwpV5POe3zDdRNfV0VjeSkVjivMuzIS+Lw+Y6ivhk2fAWDBkV4fxGOU W3iT6of8NFNohaqkzuRYd6DNhc9fRo1jZ4VQQ10= X-Received: by 2002:a17:907:960f:b0:b96:eb74:3152 with SMTP id a640c23a62f3a-b97f4819788mr325335366b.22.1773875741575; Wed, 18 Mar 2026 16:15:41 -0700 (PDT) MIME-Version: 1.0 References: <202603182215.rvi6x75ekyba@alvherre.pgsql> <1074366.1773873680@sss.pgh.pa.us> In-Reply-To: <1074366.1773873680@sss.pgh.pa.us> From: Robert Haas Date: Wed, 18 Mar 2026 19:15:29 -0400 X-Gm-Features: AaiRm50aVh-GDMyCSjHCEC-qxI7O5LiNvJrGCZr_8tpV3UgAFnTWg2P3UDoGVoM Message-ID: Subject: Re: remove bits* types To: Tom Lane Cc: =?UTF-8?Q?=C3=81lvaro_Herrera?= , Nathan Bossart , Andres Freund , Pg Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Mar 18, 2026 at 6:41=E2=80=AFPM Tom Lane wrote: > In short: maybe we don't want to go in the direction Nathan suggests, > but if we keep these types we should make an effort to use them > more consistently, so there's work to be done in that direction too. I'm definitely -1 on trying to use them more consistently. This is a 261 line patch. The reverse patch to use these types everywhere that we use integers as a collection of bits is probably 100 times that size. If you took that idea to its logical conclusion, every flags variable in the backend would end up getting converted. I'm not entirely sure that this is worth standardizing at all; if someone thinks that using bits8 or whatever makes the code more rather than less clear in a certain context, who am I to argue? If someone else prefers uint8 in another context, also fine. But if we are going to standardize, I think the only sensible choice is what Nathan's done here. The reverse would be an insane amount of code churn. --=20 Robert Haas EDB: http://www.enterprisedb.com