Re: 52.88. pg_shmem_allocations, missing units

From: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
To: Euler Taveira <euler(at)eulerto(dot)com>
Cc: 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-15 02:23:02
Message-ID: CAD21AoD7D5n7Tk=bPiyONOZEBsbZaFSJvYA89-semk5+E1TGSg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Mon, Aug 15, 2022 at 3:56 AM Euler Taveira <euler(at)eulerto(dot)com> wrote:
>
> 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.

+1

The patch looks good to me.

Regards,

--
Masahiko Sawada
EDB: https://www.enterprisedb.com/

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Daniel Gustafsson 2022-08-15 11:27:58 Re: 52.88. pg_shmem_allocations, missing units
Previous Message Tatsuo Ishii 2022-08-14 21:54:20 Re: Only one nextval tag is different