Обсуждение: Consistency of units (bits vs bytes)

Поиск
Список
Период
Сортировка

Consistency of units (bits vs bytes)

От
PG Doc comments form
Дата:
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)

Re: Consistency of units (bits vs bytes)

От
Daniel Gustafsson
Дата:
> 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/