Denis Perchine <dyp@perchine.com> writes:
>> Hmm ... probably right, but the loop logic doesn't behave that way
>> right now.
> Why not... Did not I explained what happend there?
You didn't read the way I changed it: right now it scans all the tuples
and takes the maximum endpoint, rather than assuming they will be read
in any particular order.
regards, tom lane