Single Quote in tsquery - Mailing list pgsql-sql

From Ryan Wallace
Subject Single Quote in tsquery
Date
Msg-id 16624100.9551217956742881.JavaMail.myubc2@brahms.my.ubc.ca
Whole thread Raw
Responses Re: Single Quote in tsquery
List pgsql-sql
Hi all,

I am trying to perform a full text search for the word 'ksan (which starts with a quote). After much frustration and
syntaxerrors I stumbled upon the following statement which seems to work:
 

select *
from items
where to_tsvector(name) @@ to_tsquery(E'[\']ksan')

I would like to know if this is actually the correct way to search for this word? The use of brackets isn't documented
anywherethat I can find so I'm not sure if it is even doing what I want it to do or if the correct result is just a
coincidence.

Thanks,
Ryan



pgsql-sql by date:

Previous
From: "Richard Broersma"
Date:
Subject: Re: How to change a view's owner in postgres(is it possible?)
Next
From: "Yura Gal"
Date:
Subject: composite type cast and select statement