From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: stefan.keller@ost.ch
Subject: Empty values of pg_stats_ext when table is empty
Date: Mon, 01 Nov 2021 13:23:01 +0000
Message-ID: <163577298184.680.6561061840343770915@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/14/view-pg-stats-ext.html
Description:
When table mytable is being inherited it may not contain any data but still
return row sets from the inheriting tables. Now doing CREATE STATISTICS on
mytable will work but won't have any values.
This is very difficult to realize from a user's perspective and can be
either considered a feature or a bug, i.e. being enhanced.
Given this is considered as a feature, I suggest to add a comment at the end
of this documentation
https://www.postgresql.org/docs/current/view-pg-stats-ext.html like this:
<<
Note then there are no values when the table is empty which happens when
there are tables which inherit from it.
<<
I could also think of a run-time warning?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, stefan.keller@ost.ch
Subject: Re: Empty values of pg_stats_ext when table is empty
In-Reply-To: <163577298184.680.6561061840343770915@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox