Re: I came here to determine how much storage a boolean variable uses

Поиск
Список
Период
Сортировка
От Jonathan S. Katz
Тема Re: I came here to determine how much storage a boolean variable uses
Дата
Msg-id b5b0eb00-ec60-6c25-b465-67ac2603101e@postgresql.org
обсуждение исходный текст
Ответ на Re: I came here to determine how much storage a boolean variable uses  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: I came here to determine how much storage a boolean variable uses  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-docs
On 8/30/21 11:31 AM, David G. Johnston wrote:
> On Sun, Aug 29, 2021 at 11:59 PM PG Doc comments form
> <noreply@postgresql.org <mailto:noreply@postgresql.org>> wrote:
>
>     The following documentation comment has been logged on the website:
>
>     Page: https://www.postgresql.org/docs/13/datatype.html
>     <https://www.postgresql.org/docs/13/datatype.html>
>     Description:
>
>     I'd like to see a fourth column added to Table 8-1 that contains the
>     size or
>     size range of the data type.
>
>
> I would argue this is sufficiently provided by the pg_attribute
> catalog's attlen and attalign fields, as pointed to on the same page
> linked below.
>
>     Maybe a note about the amount of space in the
>     row that a NULL column uses vs a NOT NULL.
>
>
> Implementation detail that is covered in the internals section:
>
> https://www.postgresql.org/docs/current/storage-page-layout.html#STORAGE-TUPLE-LAYOUT
> <https://www.postgresql.org/docs/current/storage-page-layout.html#STORAGE-TUPLE-LAYOUT>

Well, it is provided one level deeper in the data type docs, e.g.:

https://www.postgresql.org/docs/13/datatype-boolean.html

I think it's a reasonable request to consider. It potentially duplicates
the info in the data types section (i.e. one more thing to maintain),
but it does provide some convenience for scanning it across the
consolidated table.

Jonathan


Вложения

В списке pgsql-docs по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: I came here to determine how much storage a boolean variable uses
Следующее
От: "Daniel Westermann (DWE)"
Дата:
Сообщение: Re: Wrong note in the information schema section?