Re: 52.88. pg_shmem_allocations, missing units

From: "Euler Taveira" <euler(at)eulerto(dot)com>
To: coleman(dot)rik(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: 52.88. pg_shmem_allocations, missing units
Date: 2022-08-14 18:55:32
Message-ID: f2af03ee-f3eb-43d7-abcd-d63657e5aab4@www.fastmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
EDB https://www.enterprisedb.com/

Attachment Content-Type Size
doc-shmem-alloc.diff text/x-patch 1002 bytes

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Noboru Saito 2022-08-14 19:05:09 Only one nextval tag is different
Previous Message PG Doc comments form 2022-08-12 20:43:54 52.88. pg_shmem_allocations, missing units