Jan Wieck <JanWieck@Yahoo.com> writes:
> Tom Lane wrote:
>> Why do we have it at all? Seems like it would be at least as good to
>> make the T1-or-T2 decision in StrategyGetBuffer, rather than earlier.
> If it'd be possible. The problem is that it can get called multiple
> times during one logical buffer lookup/fault cycle. Because of the
> possible IO, which is done in the caller of the strategy, this would
> screw up the decision process about the queue sizes.
How so? It seems like postponing the decision about which queue to take
from couldn't make the behavior worse; if anything it would help to
track T1target more closely.
regards, tom lane