I wrote:> After puzzling over this for many hours, I have a theory that seems to> fit the facts.
I think the attached patch will fix it for you --- please test.
regards, tom lane