I see why it would now. But it would be nice if the message mentioned the root cause of the problem - that the tsquery value does not contain any lexemes and thus is not valid for doing a search.
... doing a index search :(. GIN core doesn't know anything about tsvector/tsquery/tsearch - so, error message should mention something like this:
GIN index doesn't support search with void argument.
-- Teodor Sigaev E-mail: [EMAIL PROTECTED] WWW: http://www.sigaev.ru/ ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings