pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: ERROR: syntax error in tsquery - for high-unicode whitespace
Date: Fri, 15 Mar 2013 14:03:04 +0100
Message-ID: <20130315130304.GA12307@depesz.com> (raw)
In-Reply-To: <20977.1363319779@sss.pgh.pa.us>
References: <20130315000838.GA12142@depesz.com>
	<20977.1363319779@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Thu, Mar 14, 2013 at 11:56:19PM -0400, Tom Lane wrote:
> hubert depesz lubaczewski <depesz@depesz.com> writes:
> > $ select to_tsquery('english', E'a\xe2\x80\x86a');
> > ERROR:  syntax error in tsquery: "a a"
> 
> > the 3-byte utf8 character is SIX-PER-EM SPACE (based on info from
> > http://www.fileformat.info/info/unicode/char/2006/index.htm)
> 
> AFAICS, that behavior is correct, if you're using a locale that reports
>   as being whitespace.  Compare
> 
> u8e=# select to_tsquery('english', E'a a');
> ERROR:  syntax error in tsquery: "a a"
> 
> You need an ampersand or something in there.
> Or use plainto_tsquery().

Right. Thanks. Not sure how I missed that.

Best regards,

depesz

-- 
The best thing about modern society is how easy it is to avoid contact with it.
                                                             http://depesz.com/


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)

Message-ID: <20130315130304.GA12307@depesz.com>
Permalink:  ../20130315130304.GA12307@depesz.com/
Also on:    postgresql.org/message-id/20130315130304.GA12307@depesz.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: depesz@depesz.com, tgl@sss.pgh.pa.us
  Subject: Re: ERROR: syntax error in tsquery - for high-unicode whitespace
  In-Reply-To: <20130315130304.GA12307@depesz.com>
  References: <20130315000838.GA12142@depesz.com> <20977.1363319779@sss.pgh.pa.us> <20130315130304.GA12307@depesz.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox