Aman Ganapathy <aman(at)stack-auth(dot)com> writes:
> I realized I forgot to attach my suggested patch and regression test. When
> a GiST search on ltree reaches an internal page, gist_qe() skips the
> subtree unless every label in the lquery is in the page's signature. That's
> wrong for a level like c{0,1}: rows like x_y.b match without containing c,
> so their subtrees get skipped.
Pushed, after shortening the test additions a great deal. Expending
lots and lots of cycles to test an edge case is not a win, and in
this test script we already have a perfectly good test table to use.
Thanks for the report and patch!
regards, tom lane