Satoshi Nagayasu <satoshi.nagayasu@xxxxxxxxx> writes: > I want to hit a row when I use 'a&b' or 'b&c' in a tsquery, > but not 'a&c'. Wouldn't this do it? tsvectorcol @@ '(a&b | b&c) & !(a&c)' regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general