aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/cluster.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-09-04 15:46:37 +0900
committerMichael Paquier <michael@paquier.xyz>2019-09-04 15:46:37 +0900
commitae060a52b2881ea842f596fa78b8d09f9a91b149 (patch)
treebc2ee716c149dd24752daa693cfa4c6bb0339585 /src/backend/commands/cluster.c
parent522baf14847a7e4cc97c49c7b1c28d21bc33921f (diff)
downloadpostgresql-ae060a52b2881ea842f596fa78b8d09f9a91b149.tar.gz
postgresql-ae060a52b2881ea842f596fa78b8d09f9a91b149.zip
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-rpA@mail.gmail.com Backpatch-through: 9.6
Diffstat (limited to 'src/backend/commands/cluster.c')
0 files changed, 0 insertions, 0 deletions