postgresql/src/backend/postmaster
Michael Paquier f4b91a50e9 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
2019-09-04 15:47:01 +09:00
..
autovacuum.c Make autovacuum more selective about temp tables to keep 2018-12-27 16:00:39 -03:00
bgworker.c Don't run atexit callbacks in quickdie signal handlers. 2018-08-08 19:09:33 +03:00
bgwriter.c Don't run atexit callbacks in quickdie signal handlers. 2018-08-08 19:09:33 +03:00
checkpointer.c Make checkpoint requests more robust. 2019-03-19 12:49:27 -04:00
fork_process.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
Makefile Allow background workers to be started dynamically. 2013-07-16 13:02:15 -04:00
pgarch.c Prioritize history files when archiving 2018-12-24 20:26:11 +09:00
pgstat.c Fix thinko when ending progress report for a backend 2019-09-04 15:47:01 +09:00
postmaster.c Fix some minor postmaster-state-machine issues. 2019-04-24 14:15:45 -04:00
startup.c Don't run atexit callbacks in quickdie signal handlers. 2018-08-08 19:09:33 +03:00
syslogger.c Make syslogger more robust against failures in opening CSV log files. 2018-08-26 14:21:55 -04:00
walwriter.c Don't run atexit callbacks in quickdie signal handlers. 2018-08-08 19:09:33 +03:00