"Ryan Wallace" <rywall(at)interchange(dot)ubc(dot)ca> writes:
> A tsquery cannot be created if the first character is an apostrophe:
> SELECT * FROM text_search_vectors WHERE
> text_search_vector @@ to_tsquery('''ksan&panel')
That's not a bug, that's you not following the syntax rules for lexemes.
You'd need something like $$'''ksan' & panel$$ to represent a lexeme
with a quote in it.
regards, tom lane