PG15 beta1 fix pg_stats_ext/pg_stats_ext_exprs view manual

Started by Shinoda, Noriyoshi (PN Japan FSIP)over 3 years ago5 messages
#1Shinoda, Noriyoshi (PN Japan FSIP)
noriyoshi.shinoda@hpe.com
1 attachment(s)

Hi hackers,
Thanks to all the developers. The attached patch updates the manual for the pg_stats_ext and pg_stats_ext_exprs view.
The current pg_stats_ext/pg_stats_ext_exprs view manual are missing the inherited column. This column was added at the same time as the stxdinherit column in the pg_statistic_ext_data view. The attached patch adds the missing description. If there is a better description, please correct it.

Commit: Add stxdinherit flag to pg_statistic_ext_data
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=269b532aef55a579ae02a3e8e8df14101570dfd9
Current Manual:
https://www.postgresql.org/docs/15/view-pg-stats-ext.html
https://www.postgresql.org/docs/15/view-pg-stats-ext-exprs.html

Regards,
Noriyoshi Shinoda

Attachments:

pg_stats_ext_doc_v1.diffapplication/octet-stream; name=pg_stats_ext_doc_v1.diffDownload
diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml
index c00c93d..4ee7dce 100644
--- a/doc/src/sgml/catalogs.sgml
+++ b/doc/src/sgml/catalogs.sgml
@@ -13410,6 +13410,16 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
 
      <row>
       <entry role="catalog_table_entry"><para role="column_definition">
+       <structfield>inherited</structfield> <type>bool</type>
+       (references <link linkend="catalog-pg-statistic-ext-data"><structname>pg_statistic_ext_data</structname></link>.<structfield>stxdinherit</structfield>)
+      </para>
+      <para>
+       If true, the statistics include inheritance child columns, not just the values in the specified relation
+      </para></entry>
+     </row>
+
+     <row>
+      <entry role="catalog_table_entry"><para role="column_definition">
        <structfield>n_distinct</structfield> <type>pg_ndistinct</type>
       </para>
       <para>
@@ -13591,6 +13601,16 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
 
      <row>
       <entry role="catalog_table_entry"><para role="column_definition">
+       <structfield>inherited</structfield> <type>bool</type>
+       (references <link linkend="catalog-pg-statistic-ext-data"><structname>pg_statistic_ext_data</structname></link>.<structfield>stxdinherit</structfield>)
+      </para>
+      <para>
+       If true, the statistics include inheritance child columns, not just the values in the specified relation
+      </para></entry>
+     </row>
+
+     <row>
+      <entry role="catalog_table_entry"><para role="column_definition">
        <structfield>null_frac</structfield> <type>float4</type>
       </para>
       <para>
#2Justin Pryzby
pryzby@telsasoft.com
In reply to: Shinoda, Noriyoshi (PN Japan FSIP) (#1)
Re: PG15 beta1 fix pg_stats_ext/pg_stats_ext_exprs view manual

On Wed, May 25, 2022 at 01:08:12AM +0000, Shinoda, Noriyoshi (PN Japan FSIP) wrote:

Hi hackers,
Thanks to all the developers. The attached patch updates the manual for the pg_stats_ext and pg_stats_ext_exprs view.
The current pg_stats_ext/pg_stats_ext_exprs view manual are missing the inherited column. This column was added at the same time as the stxdinherit column in the pg_statistic_ext_data view. The attached patch adds the missing description. If there is a better description, please correct it.

Commit: Add stxdinherit flag to pg_statistic_ext_data
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=269b532aef55a579ae02a3e8e8df14101570dfd9
Current Manual:
https://www.postgresql.org/docs/15/view-pg-stats-ext.html
https://www.postgresql.org/docs/15/view-pg-stats-ext-exprs.html

Thanks for copying me.

This looks right, and uses the same language as pg_stats and pg_statistic.

But, I'd prefer if it didn't say "inheritance child", since that now sounds
like it means "a child which is using inheritance" and not just "any child".

I'd made a patch for that, for which I'll create a separate thread shortly.

#3Justin Pryzby
pryzby@telsasoft.com
In reply to: Justin Pryzby (#2)
Re: PG15 beta1 fix pg_stats_ext/pg_stats_ext_exprs view manual

On Tue, May 24, 2022 at 08:19:27PM -0500, Justin Pryzby wrote:

On Wed, May 25, 2022 at 01:08:12AM +0000, Shinoda, Noriyoshi (PN Japan FSIP) wrote:

Hi hackers,
Thanks to all the developers. The attached patch updates the manual for the pg_stats_ext and pg_stats_ext_exprs view.
The current pg_stats_ext/pg_stats_ext_exprs view manual are missing the inherited column. This column was added at the same time as the stxdinherit column in the pg_statistic_ext_data view. The attached patch adds the missing description. If there is a better description, please correct it.

Commit: Add stxdinherit flag to pg_statistic_ext_data
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=269b532aef55a579ae02a3e8e8df14101570dfd9
Current Manual:
https://www.postgresql.org/docs/15/view-pg-stats-ext.html
https://www.postgresql.org/docs/15/view-pg-stats-ext-exprs.html

Thanks for copying me.

This looks right, and uses the same language as pg_stats and pg_statistic.

But, I'd prefer if it didn't say "inheritance child", since that now sounds
like it means "a child which is using inheritance" and not just "any child".

I'd made a patch for that, for which I'll create a separate thread shortly.

The thread I started [0]/messages/by-id/20220525013248.GO19626@telsasoft.com has stalled out, so your patch seems seems fine, since
it's consistent with pre-existing docs.

[0]: /messages/by-id/20220525013248.GO19626@telsasoft.com

--
Justin

#4Shinoda, Noriyoshi (PN Japan FSIP)
noriyoshi.shinoda@hpe.com
In reply to: Justin Pryzby (#3)
RE: PG15 beta1 fix pg_stats_ext/pg_stats_ext_exprs view manual

Thanks for your comment. sorry for the late reply.
I hope it will be fixed during the period of PostgreSQL 15 Beta.

Regards,

Noriyoshi Shinoda
-----Original Message-----
From: Justin Pryzby <pryzby@telsasoft.com>
Sent: Tuesday, June 14, 2022 11:30 PM
To: Shinoda, Noriyoshi (PN Japan FSIP) <noriyoshi.shinoda@hpe.com>
Cc: pgsql-hackers@postgresql.org; Tomas Vondra <tomas.vondra@enterprisedb.com>
Subject: Re: PG15 beta1 fix pg_stats_ext/pg_stats_ext_exprs view manual

On Tue, May 24, 2022 at 08:19:27PM -0500, Justin Pryzby wrote:

On Wed, May 25, 2022 at 01:08:12AM +0000, Shinoda, Noriyoshi (PN Japan FSIP) wrote:

Hi hackers,
Thanks to all the developers. The attached patch updates the manual for the pg_stats_ext and pg_stats_ext_exprs view.
The current pg_stats_ext/pg_stats_ext_exprs view manual are missing the inherited column. This column was added at the same time as the stxdinherit column in the pg_statistic_ext_data view. The attached patch adds the missing description. If there is a better description, please correct it.

Commit: Add stxdinherit flag to pg_statistic_ext_data

INVALID URI REMOVED
tgresql.git;a=commit;h=269b532aef55a579ae02a3e8e8df14101570dfd9__;!!
NpxR!kBff64MGwFvJU4EPtHmXM1YogdVCJKoc9-TAYGJxy_9p_MMVUGE0GJaL4KGVqY5
dTBlzhU6k0odtBi1Wv_fZ$
Current Manual:
https://www.postgresql.org/docs/15/view-pg-stats-ext.html

INVALID URI REMOVED
pg-stats-ext-exprs.html__;!!NpxR!kBff64MGwFvJU4EPtHmXM1YogdVCJKoc9-T
AYGJxy_9p_MMVUGE0GJaL4KGVqY5dTBlzhU6k0odtBvG3tq9F$

Thanks for copying me.

This looks right, and uses the same language as pg_stats and pg_statistic.

But, I'd prefer if it didn't say "inheritance child", since that now
sounds like it means "a child which is using inheritance" and not just "any child".

I'd made a patch for that, for which I'll create a separate thread shortly.

The thread I started [0]/messages/by-id/20220525013248.GO19626@telsasoft.com has stalled out, so your patch seems seems fine, since it's consistent with pre-existing docs.

[0]: /messages/by-id/20220525013248.GO19626@telsasoft.com

--
Justin

#5Michael Paquier
michael@paquier.xyz
In reply to: Shinoda, Noriyoshi (PN Japan FSIP) (#4)
Re: PG15 beta1 fix pg_stats_ext/pg_stats_ext_exprs view manual

On Mon, Jun 27, 2022 at 03:49:20AM +0000, Shinoda, Noriyoshi (PN Japan FSIP) wrote:

Thanks for your comment. sorry for the late reply.
I hope it will be fixed during the period of PostgreSQL 15 Beta.

Apologies for the delay, fixed in time for beta2.
--
Michael