Skip to content
← Catalog atlas / pg_shmem_allocations

SYSTEM VIEW · System view

pg_shmem_allocations

The pg_shmem_allocations view shows allocations made from the server's main shared memory segment. This includes both memory allocated by PostgreSQL itself and memory allocated by extensions using the mechanisms detailed in Section 36.10.11. Note that this view does not include memory allocated using the dynamic shared memory infrastructure.

First seen PG 13Last seen PG 19Columns 4

Checked column by column against a PostgreSQL 18.6 instance · Raw measurement record ↗

Columns PostgreSQL 18

pg_shmem_allocations
COLUMNTYPEDESCRIPTION
name text The name of the shared memory allocation. NULL for unused memory and <anonymous> for anonymous allocations.
off bigintDocumented as:int8 The offset at which the allocation starts. NULL for anonymous allocations, since details related to them are not known.
size bigintDocumented as:int8 Size of the allocation in bytes
allocated_size bigintDocumented as:int8 Size of the allocation in bytes including padding. For anonymous allocations, no information about padding is available, so the size and allocated_size columns will always be equal. Padding is not meaningful for free memory, so the columns will be equal in that case also.

Columns marked "implicit" are not included in SELECT *; some early statistics views are completed from same-version source, and the extra provenance is shown in the column description.

Column evolution matrix

Hover a cell for the column type
PresentAdded / type or attribute changeRemoved
COLUMN9.09.19.29.39.49.59.610111213141516171819
name
off
size
allocated_size

9.0 is the coverage baseline; a column already present in the baseline is not marked as added. The matrix aligns columns by name, so a rename appears as the old column removed and a new column added.

Evolution timeline

Changes between adjacent majors

PostgreSQL 18 ← 17

Catalog description updated

PostgreSQL 17 ← 16

Catalog description updated

PostgreSQL 16 ← 15

2 column description updates

PostgreSQL 15 ← 14

Catalog description updated

PostgreSQL 14 ← 13

Catalog description updated

PostgreSQL 13 ← 12Catalog added

+ name+ off+ size+ allocated_size

Compare any two versions

Pick two versions to see added, removed, and retyped columns. The interactive comparison needs JavaScript; the evolution timeline reads fine without it.