Jeff Janes <jeff(dot)janes(at)gmail(dot)com> writes:
> On Tue, Nov 11, 2014 at 10:11 AM, Marko Tiikkaja <marko(at)joh(dot)to> wrote:
>> This sounds a lot like another bug I've seen. Can you try this patch?
> That fixes it. I've tested all lengths from 1 to 133,000
> I've added a regression test to it, in the attached.
Pushed.
regards, tom lane