Fix thinko when ending progress report for a backend The logic ending progress reporting for a backend entry introduced by b6fb647 causes callers of pgstat_progress_end_command() to do some extra work when track_activities is enabled as the process fields are reset in the backend entry even if no command were started for reporting.
This resets the fields only if a command is registered for progress reporting, and only if track_activities is enabled. Author: Masahiho Sawada Discussion: https://postgr.es/m/cad21aocry_vj0e-m5oxjxgl3pnos-xygczf95rk5bbi3uf-...@mail.gmail.com Backpatch-through: 9.6 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ae060a52b2881ea842f596fa78b8d09f9a91b149 Modified Files -------------- src/backend/postmaster/pgstat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
