Skip to content

Commit

Permalink
doc: Mention that partitions_{done,total} is 0 for REINDEX progress r…
Browse files Browse the repository at this point in the history
…eports

REINDEX has recently gained support for partitions, so it can be
confusing to see those fields not being set.  Making useful reports for
for such relations is more complicated than it looks with the current
set of columns available in pg_stat_progress_create_index, and this
touches equally REINDEX DATABASE/SYSTEM/SCHEMA.  This commit documents
that those two columns are not touched during a REINDEX.

Reported-by: Justin Pryzby
Discussion: https://postgr.es/m/[email protected]
  • Loading branch information
michaelpq committed Feb 20, 2021
1 parent a899ec1 commit 1766118
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/src/sgml/monitoring.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand All @@ -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>
Expand Down

0 comments on commit 1766118

Please sign in to comment.