On 3/29/17 22:10, Haribabu Kommi wrote: > Updated patch to use shared counter instead of adding pg_stat_ calls to send > the statistics from each background process/worker.
Your patch needs to be rebased and the OID assignments updated.
Rebased patch is attached. And also it has taken care of the comments provided
by Andres and Fuji Masao in the upthread.
I separated the walwriter statistics from the other background processes to check
how much load does the other processes are really contributing to wal writing.
Following is the test results during my performance test.