Avoiding empty queries in tsearch - Mailing list pgsql-general

From Doug Cole
Subject Avoiding empty queries in tsearch
Date
Msg-id 7b8d80330701141541s745e08edle079c4e403c5f06e@mail.gmail.com
Whole thread Raw
List pgsql-general
I am having trouble with to_tsquery when the query is all stop words.
Rather than return everything as a match, it returns nothing with the
notice:

NOTICE:  Query contains only stopword(s) or doesn't contain lexem(s), ignored

What is the best way to check for this, I was hoping to be able to
check if the resulting tsquery was empty or null, but haven't found a
way.  Any advice?
Thanks for your help,
Doug

pgsql-general by date:

Previous
From: Steve Martin
Date:
Subject: PQexec does not return.
Next
From: roopa perumalraja
Date:
Subject: Backup the part of postgres database