are you running some sort of monitoring software thats periodically looking at pg_stat_activity ? whatever query its doing needs to be rewritten to take into account the pg_stat_activity changes in 9.6
Thanks John. I see munin queries the 'waiting' column.
Also It would help to modify your log line prefix (log_line_prefix) to include client's address, PID, and application name.
Thanks for the hint Achilleas. It makes a lot of sense.
Regards
Johann
--
Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)