Re: 52.88. pg_shmem_allocations, missing units

Поиск
Список
Период
Сортировка
От Euler Taveira
Тема Re: 52.88. pg_shmem_allocations, missing units
Дата
Msg-id f2af03ee-f3eb-43d7-abcd-d63657e5aab4@www.fastmail.com
обсуждение исходный текст
Ответ на 52.88. pg_shmem_allocations, missing units  (PG Doc comments form <noreply@postgresql.org>)
Ответы Re: 52.88. pg_shmem_allocations, missing units  (Masahiko Sawada <sawada.mshk@gmail.com>)
Список pgsql-docs
On Fri, Aug 12, 2022, at 5:43 PM, PG Doc comments form wrote:
Could someone add the units of size & allocated_size on the documentation
for pg_shmem_allocations?  Currently there aren't any listed.
According to ShmemIndexEnt struct:

/* this is a hash bucket in the shmem index table */
typedef struct
{
    char        key[SHMEM_INDEX_KEYSIZE];   /* string name */
    void       *location;       /* location in shared mem */
    Size        size;           /* # bytes requested for the structure */
    Size        allocated_size; /* # bytes actually allocated */
} ShmemIndexEnt;

The unit is bytes. A patch is attached to add such information.


--
Euler Taveira

Вложения

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

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: 52.88. pg_shmem_allocations, missing units
Следующее
От: Noboru Saito
Дата:
Сообщение: Only one nextval tag is different