Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ousyz-0004Q1-V0 for pgsql-docs@arkaria.postgresql.org; Tue, 15 Nov 2022 10:15:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ousyy-0004AK-GW for pgsql-docs@arkaria.postgresql.org; Tue, 15 Nov 2022 10:15:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ousyy-0004AB-94 for pgsql-docs@lists.postgresql.org; Tue, 15 Nov 2022 10:15:56 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ousyv-0008U4-Uo for pgsql-docs@lists.postgresql.org; Tue, 15 Nov 2022 10:15:55 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id EBCDA2F791C2 for ; Tue, 15 Nov 2022 11:15:52 +0100 (CET) Received: from s979.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id DCB872E2A32F; Tue, 15 Nov 2022 11:15:52 +0100 (CET) Received: from s898.loopia.se (unknown [172.22.191.5]) by s979.loopia.se (Postfix) with ESMTP id DA01210BC474; Tue, 15 Nov 2022 11:15:52 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s934.loopia.se ([172.22.191.5]) by s898.loopia.se (s898.loopia.se [172.22.190.17]) (amavisd-new, port 10024) with UTF8LMTP id FTcJfViKo8Du; Tue, 15 Nov 2022 11:15:52 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s934.loopia.se (Postfix) with ESMTPSA id 6C0D37CEA58; Tue, 15 Nov 2022 11:15:52 +0100 (CET) From: Daniel Gustafsson Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: Consistency of units (bits vs bytes) Date: Tue, 15 Nov 2022 11:15:51 +0100 References: <166845317039.635.6194510047097701846@wrigleys.postgresql.org> To: troy@frericks.us, pgsql-docs@lists.postgresql.org In-Reply-To: <166845317039.635.6194510047097701846@wrigleys.postgresql.org> Message-Id: X-Mailer: Apple Mail (2.3696.100.31) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 14 Nov 2022, at 20:12, PG Doc comments form = wrote: >=20 > The following documentation comment has been logged on the website: >=20 > Page: https://www.postgresql.org/docs/15/datatype-uuid.html > Description: >=20 > One can describe the size of datatypes in the common units of bits or = bytes. > It'd be desirable to be consistent. Please reference these two = pages...=20 > https://www.postgresql.org/docs/current/datatype-numeric.html (data = types > sized in bytes) > and > https://www.postgresql.org/docs/current/datatype-uuid.html (data type = sized > in bits) These are different things, the page with numeric types discuss the = number of bytes used to store the values. UUIDs are defined in the RFC as 128-bit identifiers, which is related to but not by definition the same as the = space used to store them in the database. -- Daniel Gustafsson https://vmware.com/