Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W7TUW-0003Nr-UP for pgsql-bugs@arkaria.postgresql.org; Sun, 26 Jan 2014 17:27:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W7TUW-00011J-9o for pgsql-bugs@arkaria.postgresql.org; Sun, 26 Jan 2014 17:27:28 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W7TUV-00011C-6K for pgsql-bugs@postgresql.org; Sun, 26 Jan 2014 17:27:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W7TUL-00050M-SV for pgsql-bugs@postgresql.org; Sun, 26 Jan 2014 17:27:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s0QHRG4D003434; Sun, 26 Jan 2014 12:27:16 -0500 From: Tom Lane To: Marco Atzeri cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8970: ts_parse incorrectly split numbers in digit token In-reply-to: <52E4C2F3.5020705@gmail.com> References: <20140125065024.26700.13481@wrigleys.postgresql.org> <20140126022535.GG10723@eldon.alvh.no-ip.org> <52E4C2F3.5020705@gmail.com> Comments: In-reply-to Marco Atzeri message dated "Sun, 26 Jan 2014 09:10:27 +0100" Date: Sun, 26 Jan 2014 12:27:16 -0500 Message-ID: <3433.1390757236@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) 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 Marco Atzeri writes: > On 26/01/2014 03:25, Alvaro Herrera wrote: >> To trace this, I would look at src/backend/tsearch/wparser_def.c; >> probably try compiling that file with WPARSER_TRACE defined, and compare >> the output of ts_parse() in something simple such as '345' in a working >> port with the failing one. That might give you clues as to what is >> causing the failure. > [ trace ] As was suspected upthread, this shows that p_isdigit() is failing to recognize "3" as a digit. So you've got broken locale support somewhere. There are two different implementations of p_isdigit in wparser_def.c, depending on whether USE_WIDE_UPPER_LOWER is defined. It should be, in a Windows build, but maybe this is tracing back to a configure problem? 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