pg_shmem_allocations & documentation - Mailing list pgsql-hackers

From Benoit Lobréau
Subject pg_shmem_allocations & documentation
Date
Msg-id CAPE8EZ5Lnoyqoz7aZpvQM0E8sW+hw+k6G2NULe+m4arFRrA1aA@mail.gmail.com
Whole thread Raw
Responses Re: pg_shmem_allocations & documentation
List pgsql-hackers
Hi,

While reading the documentation of pg_shmem_allocations, I noticed that the off column is described as such : 

"The offset at which the allocation starts. NULL for anonymous allocations and unused memory."

Whereas, the view returns a value for unused memory: 

[local]:5433 postgres@postgres=# SELECT * FROM pg_shmem_allocations WHERE name IS NULL;
 name |    off    |  size   | allocated_size 
------+-----------+---------+----------------
 ¤    | 178095232 | 1923968 |        1923968
(1 row)

From what I understand, the doc is wrong.
Am I right ?

Benoit

pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: Parallel INSERT (INTO ... SELECT ...)
Next
From: Dilip Kumar
Date:
Subject: Re: Single transaction in the tablesync worker?