Re: Re: PATCH: Split stats file per database WAS: autovacuum stress-testing our system
Tomas Vondra <tomas.vondra@2ndquadrant.com>
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Noah Misch <noah@leadboat.com>
Cc: pgsql-hackers@postgresql.org, Alvaro Herrera <alvherre@2ndquadrant.com>
Date: 2016-03-19T00:38:30Z
Lists: pgsql-hackers
Attachments
- pgstat-coalesce-v3.patch (binary/octet-stream) patch v3
Hi, On 03/15/2016 03:04 AM, Noah Misch wrote: > On Mon, Mar 14, 2016 at 01:33:08PM +0100, Tomas Vondra wrote: >> On 03/14/2016 07:14 AM, Noah Misch wrote: >>> On Mon, Mar 14, 2016 at 02:00:03AM +0100, Tomas Vondra wrote: >>>> + * XXX Maybe this should also care about the clock skew, just like the >>>> + * block a few lines down. >>> >>> Yes, it should. (The problem is large (>~100s), backward clock resets, not >>> skew.) A clock reset causing "msg->clock_time < dbentry->stats_timestamp" >>> will usually also cause "msg->cutoff_time < dbentry->stats_timestamp". Such >>> cases need the correction a few lines down. >> >> I'll look into that. I have to admit I have a hard time reasoning about the >> code handling clock skew, so it might take some time, though. > > No hurry; it would be no problem to delay this several months. Attached is a patch that should fix the coalescing, including the clock skew detection. In the end I reorganized the code a bit, moving the check at the end, after the clock skew detection. Otherwise I'd have to do the clock skew detection on multiple places, and that seemed ugly. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Split pgstat file in smaller pieces
- 187492b6c2e8 9.3.0 cited