Re: BUG #4446: Full text search cannot start with an apostrophe - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4446: Full text search cannot start with an apostrophe
Date
Msg-id 8078.1222866511@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4446: Full text search cannot start with an apostrophe  ("Ryan Wallace" <rywall@interchange.ubc.ca>)
List pgsql-bugs
"Ryan Wallace" <rywall@interchange.ubc.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

pgsql-bugs by date:

Previous
From: "Ryan Wallace"
Date:
Subject: BUG #4446: Full text search cannot start with an apostrophe
Next
From: "Jen McCann"
Date:
Subject: BUG #4447: install failed to start; libintl3.dll was not found