From 75ca8c14576238926e1f4c2e80c11dd23a1911c3 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Mon, 15 Aug 2022 22:30:00 +0200 Subject: [PATCH] doc: Add unit to pg_shmem_allocations attributes The unit of size and allocated_size was not documented. Speciyfing the unit is in line with how many other (but not all) system view attributes are documented so fixing by adding the unit which is "bytes". Author: Euler Taveira Reviewed-by: Masahiko Sawada Reported-by: coleman.rik@gmail.com Discussion: https://postgr.es/m/166033703458.653.1583077816076994614@wrigleys.postgresql.org --- doc/src/sgml/system-views.sgml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/system-views.sgml b/doc/src/sgml/system-views.sgml index 9728039e71..44aa70a031 100644 --- a/doc/src/sgml/system-views.sgml +++ b/doc/src/sgml/system-views.sgml @@ -3485,7 +3485,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx size int8 - Size of the allocation + Size of the allocation in bytes @@ -3494,7 +3494,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx allocated_size int8 - Size of the allocation including padding. For anonymous + 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