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 1w2yGw-000mEP-1F for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 21:17: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 1w2yGv-00EQC5-0p for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 21:17: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 1w2yGu-00EQBw-2y for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2026 21:17:44 +0000 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w2yGr-00000000Qb0-2pLD for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2026 21:17:44 +0000 Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-466f00535cfso25299b6e.1 for ; Wed, 18 Mar 2026 14:17:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773868662; x=1774473462; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=n9TXo61kXa04gMvMtRVYx8fv/la91j81cMyW6F+s/oI=; b=L1uYAjDXxCLoy2xO/23IDL/I2FFk5ocmtmCJrODHmKl6g8YSIau3Zsi1I/YztJ970b f+JWc5Pnd9W9a5TTaCl/eNKv64Gc5jX9gxDCdulhHorYcJxscabNvGmlj59NH8WuTiQy 9zH7CzxEeyp0IVi+MzIcEXMi7A7myalGb9dXAf+YA+q9iMUmkDIeVha/nzOqGc7vb8Q0 cX2FOjha788DZu8ZCjImaUEshIFL6MXZwbOVdZyG2nseJ/HL/z8iaQzfvGt4T79ihE2j h+RxmogTz4cAan3evwOd9UWh6mC0Vi89VOWwAPSzVdcwx+l/GMiWcrrTgoOfL1UQ8Q7I Uw4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773868662; x=1774473462; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n9TXo61kXa04gMvMtRVYx8fv/la91j81cMyW6F+s/oI=; b=q/IFwoq+Vg5mnkyqI5H1VHsyO9nk8fG9PKmlMRKSaP7VxaDw37v9eWimRJYi9SrZHR 2Dh0RGUvsLF17EGRH5vBrPVJf09WRTdIW1Zt+DBBGSEs9n6LND3hqvVO/mZcNew1Gomq 1qG1JbPCofyRXZd+yb3Y4kbqlQEz7L3KhWlicdPABvKwPyMnEkSFiBk44D+ddVlga86L SkljNkYhhA5/Zizi9jWdqpuSLmaOKRxA/8VWVExSLZBY4aO08V8XeWkOCJOABtd1flLi DO3RzbRzcWkRx8vfB7OSGx5d7gk983fF7/bMrGE8ma1tC6D8aTOCj8pafa/oVGcHF+fw 8mOg== X-Forwarded-Encrypted: i=1; AJvYcCUimISYjpfSDjZIOvmxjVTZgfuxgdJY5QhJQkFWzqPV+XpXMQGOWtkH2BbbGb2sVjXktYQVaFr+dvFHrNyK@lists.postgresql.org X-Gm-Message-State: AOJu0YyUjFO2aru2Tb2OBx9x9uhe+Q+qbbl1DEUuv4AUPRbt+emvst2R JF8muQb8GG3oBzw/guTpKN49a510eTcJMIHhdAc8sQ4ts77GmBkuFZqU X-Gm-Gg: ATEYQzxLQjZKO7sIIKvc4Ham83od/zXR0nAGDRmB/qAs34kLkHZrFasuj7DbAMUboCg u6N/9WR38xZ0nNMvJ5AYqp38IS3pffaFbd4OJXSWfQ+RF+mUqnvFIC3BOnw5iRC7CLHV8G3c5CQ bWFQUCbFJuPcmeSkiJgBoXLKakY+3g/bcC6/UdMJH2KzNXS8LTpxEA4l71goWU4fOOqPuDxlo/O ALSX4DNo+L3eAv4niWAOfuYugnUQXBglKSaxCxZ74STTuz9Z03wSXt2O8nEGE9B7wbtra43Clz1 fSywwb504aOCSvltZckXnGPRcehUmnsNuk8JUkx+NKlGIn54N/XNDnneL4UiLgLp5bU+5HNKdVs IA9NN9PdK+2sXLUAqNPcQrMGHYZ9fs/FS53gJRp3PZLcHsQKQIUs5321P4o4CIg1cSCsoeCXFjG mBJIwlEb3qHJRWy846tH2JGyYLAcCgxe9ygLSonJjOlRohMV0GH6uvknd2DmTmgDhg0AEji5yJG ooQZ3UdCmqShbwk X-Received: by 2002:a05:6808:144b:b0:45e:84e7:c20b with SMTP id 5614622812f47-467ba1e6ed0mr3157819b6e.25.1773868662445; Wed, 18 Mar 2026 14:17:42 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-41bd2c2d51esm4021059fac.11.2026.03.18.14.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2026 14:17:42 -0700 (PDT) Date: Wed, 18 Mar 2026 16:17:40 -0500 From: Nathan Bossart To: Andres Freund Cc: =?utf-8?Q?=C3=81lvaro?= Herrera , Pg Hackers Subject: Re: table AM option passing Message-ID: References: <202603171944.2qugoabbkfqr@alvherre.pgsql> <44e6ze3kuunhky63wmfjxrmn72pds2whwf5ok6hpz7c4my7k2h@l65zhpcuasnf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44e6ze3kuunhky63wmfjxrmn72pds2whwf5ok6hpz7c4my7k2h@l65zhpcuasnf> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 17, 2026 at 05:09:49PM -0400, Andres Freund wrote: > Personally I object to the existence of the bits* types, to me they're just > noise over using the corresponding unsigned integer types. One more thing that > one has to just know what it means without there being any actual improved > type checking or such. It's not like using bits* would make it any easier to > make the underlying type a struct or such (which is different to > e.g. TransactionId, we could probably replace that with a struct without crazy > amounts of trouble). Yeah, I don't see why you'd prefer bits32 over uint32. If anything, uint32 is probably less confusing because most hackers will have used it before. AFAICT the bits* types are a relic of the 80s, and there used to be other types like bool8 and word32, all of which were just uint* behind the scenes. Those were removed in 2004 by commit ca7a1f0c86. I assume bits* was left behind because it was still in use. > I think we should just rip the bits* types out and replace them with the > underlying types. +1. If there seems to be consensus, I'm happy to write the patch. -- nathan