Consistency of units (bits vs bytes)

Started by PG Bug reporting formover 3 years ago2 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/15/datatype-uuid.html
Description:

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...
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)

#2Daniel Gustafsson
daniel@yesql.se
In reply to: PG Bug reporting form (#1)
Re: Consistency of units (bits vs bytes)

On 14 Nov 2022, at 20:12, PG Doc comments form <noreply@postgresql.org> wrote:

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/15/datatype-uuid.html
Description:

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...
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/