Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W7Knj-00013i-Eq for pgsql-bugs@arkaria.postgresql.org; Sun, 26 Jan 2014 08:10:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W7Kni-0001fU-UT for pgsql-bugs@arkaria.postgresql.org; Sun, 26 Jan 2014 08:10:42 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W7Kni-0001fO-5f for pgsql-bugs@postgresql.org; Sun, 26 Jan 2014 08:10:42 +0000 Received: from mail-ea0-x22d.google.com ([2a00:1450:4013:c01::22d]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W7Knb-0003lo-5r for pgsql-bugs@postgresql.org; Sun, 26 Jan 2014 08:10:41 +0000 Received: by mail-ea0-f173.google.com with SMTP id d10so1716307eaj.4 for ; Sun, 26 Jan 2014 00:10:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=fGwvfdt9Ci2M2MF6K9LdMsa/NT9TbRWEnydlzqM4rng=; b=g4JtG4TMwCoadz1e8Pu2a4fLLW50m/p24YGTBIqS2SN2Tk9GEQPEjwOz8j9bTviq1w +dYXDTpMDxBp+99sRQ17FadEw2saihYzFOUEfY14Xw2i/Sk5aMX/eG6IqEJ6VpQog0vc 46PnVbSTbLvn4E8y4xf/pCLNZKKTh+ms0MXK9lFILG+Ai3plnU88/DjH1T44yapQJ7Zk 9F4yvnVaSPMBopS2ppyuO9Jp9OdpJSohJ0htQL3tAdM7+2d2l3E2X8QiX0z/Ek6xm/gB m4a4DsFQEpCwQYDqDhRh2bh7A1Zv1TeFs35evjK9jNlsped4wf1TpP16J5B17kEOqBHR d1Bw== X-Received: by 10.14.88.131 with SMTP id a3mr2882471eef.64.1390723833066; Sun, 26 Jan 2014 00:10:33 -0800 (PST) Received: from [192.168.1.3] (ppp-140-166.32-151.iol.it. [151.32.166.140]) by mx.google.com with ESMTPSA id w4sm25993685eef.20.2014.01.26.00.10.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Jan 2014 00:10:32 -0800 (PST) Message-ID: <52E4C2F3.5020705@gmail.com> Date: Sun, 26 Jan 2014 09:10:27 +0100 From: Marco Atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #8970: ts_parse incorrectly split numbers in digit token References: <20140125065024.26700.13481@wrigleys.postgresql.org> <20140126022535.GG10723@eldon.alvh.no-ip.org> In-Reply-To: <20140126022535.GG10723@eldon.alvh.no-ip.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.0 (--) 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 26/01/2014 03:25, Alvaro Herrera wrote: > marco.atzeri@gmail.com escribió: > > > 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. > database created with LANG=en_US.UTF-8 postgres=# SELECT * FROM ts_parse('default', '345'); ; tokid | token -------+------- 12 | 3 12 | 4 22 | 5 (3 rows) parsing "345" state TPS_Base at 3 matched rule 12 flags tostate TPS_InSpace state TPS_InSpace at 4 matched rule 8 flags BINGO tostate TPS_Base type blank state TPS_Base at 4 matched rule 12 flags tostate TPS_InSpace state TPS_InSpace at 5 matched rule 8 flags BINGO tostate TPS_Base type blank state TPS_Base at 5 matched rule 5 flags tostate TPS_InUnsignedInt state TPS_InUnsignedInt at EOF matched rule 0 flags BINGO tostate TPS_Base type uint database created with LANG=C postgres=# SELECT * FROM ts_parse('default', '345'); ; tokid | token -------+------- 22 | 345 (1 row) parsing "345" state TPS_Base at 3 matched rule 5 flags tostate TPS_InUnsignedInt state TPS_InUnsignedInt at 4 matched rule 1 flags state TPS_InUnsignedInt at 5 matched rule 1 flags state TPS_InUnsignedInt at EOF matched rule 0 flags BINGO tostate TPS_Base type uint -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs