Re: Publish checkpoint timing and sync files summary data to pg_stat_bgwriter

Greg Smith <greg@2ndquadrant.com>

From: Greg Smith <greg@2ndQuadrant.com>
To: pgsql-hackers@postgresql.org
Date: 2012-01-16T06:46:02Z
Lists: pgsql-hackers
On 01/16/2012 01:28 AM, Greg Smith wrote:
> -I can't tell for sure if this is working properly when 
> log_checkpoints is off.  This now collects checkpoint end time data in 
> all cases, whereas before it ignored that work if log_checkpoints was off.

...and there's at least one I missed located already:  inside of md.c.  
I'd forgotten how many spots where timing calls are optimized out are 
floating around this code path.

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com