On Thu, Feb 18, 2021 at 02:17:00PM +0900, Michael Paquier wrote: > I have no issues with documenting more precisely on which commands > partitions_total and partitions_done apply currently, by citing the > commands where these are effective. We do that for index_relid for > instance.
Please find attached a patch to do that. Justin, what do you think? -- Michael
diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index c602ee4427..3513e127b7 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -5716,6 +5716,7 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid, <para> When creating an index on a partitioned table, this column is set to the total number of partitions on which the index is to be created. + This field is <literal>0</literal> during a <literal>REINDEX</literal>. </para></entry> </row> @@ -5726,6 +5727,7 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid, <para> When creating an index on a partitioned table, this column is set to the number of partitions on which the index has been completed. + This field is <literal>0</literal> during a <literal>REINDEX</literal>. </para></entry> </row> </tbody>
signature.asc
Description: PGP signature