From: | PG Doc comments form <noreply(at)postgresql(dot)org> |
---|---|
To: | pgsql-docs(at)lists(dot)postgresql(dot)org |
Cc: | m(dot)sakrejda(at)gmail(dot)com |
Subject: | pg_class.relpages documentation does not mention relpages corner case |
Date: | 2023-06-05 23:03:49 |
Message-ID: | 168600622919.640.13784585346362749956@wrigleys.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/14/catalog-pg-class.html
Description:
In the pg_class documentation [1], the relpages column is described as
>Size of the on-disk representation of this table in pages (of size BLCKSZ).
This is only an estimate used by the planner. It is updated by VACUUM,
ANALYZE, and a few DDL commands such as CREATE INDEX.
However, it looks like this is -1 for partitioned tables. At least for ones
that have children and have been analyze since adding a child partition, it
seems. I'm not sure how to word that concisely, but should the documentation
note this case? Or can this just be zero for partitioned tales? I'm not sure
if it's too late for that, but they don't actually have any relpages, so it
seems odd that they need a sentinel value.
Thanks,
Maciek
[1]: https://www.postgresql.org/docs/current/catalog-pg-class.html
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Gustafsson | 2023-06-06 07:56:05 | Re: confusing positioning of notes in connection settings |
Previous Message | Bruce Momjian | 2023-06-05 18:00:46 | Re: PostgreSQL 16 release notes: could cloud |