Use pgstat_progress_update_multi_param() where possible
authorMichael Paquier <michael@paquier.xyz>
Mon, 22 Feb 2021 05:21:40 +0000 (14:21 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 22 Feb 2021 05:21:40 +0000 (14:21 +0900)
commit92942642788c9d73e4c090ee0a77603f7afbc1d7
tree259cc5c395ef664a0a8c542b1aa9a39c5a452615
parentdb8374d804f2dd35a0f934984d1d3686cc71f545
Use pgstat_progress_update_multi_param() where possible

This commit changes one code path in REINDEX INDEX and one code path
in CREATE INDEX CONCURRENTLY to report the progress of each operation
using pgstat_progress_update_multi_param() rather than
multiple calls to pgstat_progress_update_param().  This has the
advantage to make the progress report more consistent to the end-user
without impacting the amount of information provided.

Author: Bharath Rupireddy
Discussion: https://postgr.es/m/CALj2ACV5zW7GxD8D_tyO==bcj6ZktQchEKWKPBOAGKiLhAQo=w@mail.gmail.com
src/backend/catalog/index.c
src/backend/commands/indexcmds.c