Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UGLlB-0003rU-I0 for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Mar 2013 03:56:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UGLlB-0000X1-1b for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Mar 2013 03:56:49 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UGLlA-0000Wv-5Q for pgsql-bugs@postgresql.org; Fri, 15 Mar 2013 03:56:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UGLl8-00068f-AW for pgsql-bugs@postgresql.org; Fri, 15 Mar 2013 03:56:47 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r2F3uJiR020978; Thu, 14 Mar 2013 23:56:19 -0400 (EDT) From: Tom Lane To: depesz@depesz.com cc: pgsql-bugs@postgresql.org Subject: Re: ERROR: syntax error in tsquery - for high-unicode whitespace In-reply-to: <20130315000838.GA12142@depesz.com> References: <20130315000838.GA12142@depesz.com> Comments: In-reply-to hubert depesz lubaczewski message dated "Fri, 15 Mar 2013 01:08:38 +0100" Date: Thu, 14 Mar 2013 23:56:19 -0400 Message-ID: <20977.1363319779@sss.pgh.pa.us> 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 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(). regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs