Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UGUHy-00033d-5N for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Mar 2013 13:03:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UGUHx-0007vP-Gs for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Mar 2013 13:03:13 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UGUHw-0007vJ-Bj for pgsql-bugs@postgresql.org; Fri, 15 Mar 2013 13:03:12 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UGUHs-0007rC-C8 for pgsql-bugs@postgresql.org; Fri, 15 Mar 2013 13:03:11 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.80) (envelope-from ) id 1UGUHp-0006C6-8n; Fri, 15 Mar 2013 14:03:05 +0100 Date: Fri, 15 Mar 2013 14:03:04 +0100 From: hubert depesz lubaczewski To: Tom Lane Cc: pgsql-bugs@postgresql.org Subject: Re: ERROR: syntax error in tsquery - for high-unicode whitespace Message-ID: <20130315130304.GA12307@depesz.com> Reply-To: depesz@depesz.com References: <20130315000838.GA12142@depesz.com> <20977.1363319779@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20977.1363319779@sss.pgh.pa.us> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -4.3 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Thu, Mar 14, 2013 at 11:56:19PM -0400, Tom Lane wrote: > hubert depesz lubaczewski 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