pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marco Atzeri <marco.atzeri@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8970: ts_parse incorrectly split numbers in digit token
Date: Sun, 26 Jan 2014 12:27:16 -0500
Message-ID: <3433.1390757236@sss.pgh.pa.us> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Marco Atzeri <marco.atzeri@gmail.com> 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



view thread (11+ messages)  latest in thread

Message-ID: <3433.1390757236@sss.pgh.pa.us>
Permalink:  ../3433.1390757236@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3433.1390757236@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, marco.atzeri@gmail.com
  Subject: Re: BUG #8970: ts_parse incorrectly split numbers in digit token
  In-Reply-To: <3433.1390757236@sss.pgh.pa.us>
  References: <20140125065024.26700.13481@wrigleys.postgresql.org> <20140126022535.GG10723@eldon.alvh.no-ip.org> <52E4C2F3.5020705@gmail.com> <3433.1390757236@sss.pgh.pa.us>

* 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