shihao zhong <zhong950419(at)gmail(dot)com> writes:
> I can reproduce this on 15 through 19. A negated left side such as
> '(!(b <-> c) & a) <-> d' hits it too. The attached patch clamps the
> computed positions to 16383, as tsvector_concat() already does.
Agreed, good catch.
We really need to look into relaxing the positions limit. I think
clamping to 16K was only marginally reasonable before we invented
the phrase-distance operator, and it's really horrid since then,
because it basically breaks <-> checks on any moderately-large
document. But in the meantime we need this.
regards, tom lane