Re: Limiting setting of hint bits by read-only queries; vacuum_delay

From: Greg Smith <greg(at)2ndQuadrant(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Limiting setting of hint bits by read-only queries; vacuum_delay
Date: 2013-03-25 02:50:48
Message-ID: 514FBB88.7070707@2ndQuadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 3/24/13 7:14 AM, Simon Riggs wrote:
> Patch to implement is a few hours work. The only complexity is
> deciding how to handle SQL in functions.... to which I would say, as
> simply as possible.

Like the Page replacement ideas, the throttle on how fast something like
this will get done depends not on development time, but on putting
together more performance regression tests. The idea I was thinking
about is refactoring the background writer's role in hint bit
maintenance. If backends could push "this looks dirty" page numbers
toward the BGW and keep going, it might stream those out to disk under
its control.

I also have a larger proposal for how to refactor I/O so that both
queries and CREATE INDEX have similar cost controls to the ones used to
limit vacuum. And two more based on collecting extra data for high cost
queries before they run.

But right now I keep biting my tongue about the design on all these, and
return to working on one of the patches already in the CF queue instead.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Darren Duncan 2013-03-25 03:29:07 adding support for zero-attribute unique/etc keys
Previous Message Josh Berkus 2013-03-25 02:02:55 Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)