• Tom Lane's avatar
    Fix erroneous parsing of tsquery input "... & !(subexpression) | ..." · abc10262
    Tom Lane authored
    After parsing a parenthesized subexpression, we must pop all pending
    ANDs and NOTs off the stack, just like the case for a simple operand.
    Per bug #5793.
    
    Also fix clones of this routine in contrib/intarray and contrib/ltree,
    where input of types query_int and ltxtquery had the same problem.
    
    Back-patch to all supported versions.
    abc10262
ltxtquery_io.c 10.2 KB