Re: Track the amount of time waiting due to cost_delay - Mailing list pgsql-hackers

From Sergei Kornilov
Subject Re: Track the amount of time waiting due to cost_delay
Date
Msg-id 16915281734123997@tlzfnq74f336m6wy.iva.yp-c.yandex.net
Whole thread Raw
In response to Track the amount of time waiting due to cost_delay  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
List pgsql-hackers
Hello!

+/*
+ * In case of parallel workers, the last time the delay has been reported to
+ * the leader.
+ * We assume this initializes to zero.
+ */
+static instr_time last_report_time;

Maybe last_report_time would be better named worker_last_report_time? (It is not clear to me from the comment that the
variableis not used by the leader or autovacuum worker at all)
 

+        /* Parallel worker */
+        if (IsParallelWorker())

I think this comment doesn't add value (just repeats the code), maybe delete it?

I was surprised that the patch does not add reporting for log_autovacuum_min_duration. But I see it was discussed
earlier,great. (postponed for another topic&patch)
 

- code looks good
- docs pass (not a native English speaker)
- check-world pass

regards, Sergei



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: checkpointer: PANIC: could not fsync file: No such file or directory
Next
From: Peter Geoghegan
Date:
Subject: Re: bt_index_parent_check and concurrently build indexes