I wrote:> I won't update the patch right now, but "(rescan SubPlan N)"> seems like a winner to me.
Here's a hopefully-final version that makes that adjustment andtweaks a couple of comments.
regards, tom lane