I wrote:
> Also, that routine will disappear entirely if we agree to remove
> commit_siblings (see nearby thread), so right at the moment I'm not very
> concerned about improving it. If it is still there forty-eight hours
> from now, let's talk about it then.
Oh, never mind that, I was momentarily confusing it with
CountActiveBackends. But the other point stands.
regards, tom lane