Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkxNz-0001kV-K9 for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Aug 2017 19:01:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dkxNz-00043p-6i for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Aug 2017 19:01:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dkxNy-00043g-NY for pgsql-bugs@postgresql.org; Thu, 24 Aug 2017 19:01:46 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkxNq-0004CC-V6 for pgsql-bugs@postgresql.org; Thu, 24 Aug 2017 19:01:45 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 8472421C04CE; Thu, 24 Aug 2017 22:01:36 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from arthur.localdomain (ppp91-76-172-113.pppoe.mtu-net.ru [91.76.172.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 549F021C04AD; Thu, 24 Aug 2017 22:01:36 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1503601296; bh=wAKr8EfcrTjcWOVkz2bS5KXwe8Wu02Fvi9GFIYxeug8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=OvWHXiczcVqAZZmOglh4ksPIZaPg77H8DCCz4x55BpwmvdDIz0lTVeUv0Ep1ZcQXt O3yC8LgfFYGTgUZEeXFpFapAwzaCsBhxEnPlLKalEU1oAiQcEibGv1TB6tNMgYSvip hO+RoIzCsL7wvKs4VcNsjm2/XVbJ1FCwh2EDNPyE= Date: Thu, 24 Aug 2017 22:01:34 +0300 From: Arthur Zakirov To: Mart Palmas Cc: "pgsql-bugs@postgresql.org" Subject: Re: TO_TSVECTOR acts differently with national charcters Message-ID: <20170824190134.GA1699@arthur.localdomain> References: <2E9A0BD1BE1DDD498AD83A732B3EF884AD38A7AC@mail2.datel.ee> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2E9A0BD1BE1DDD498AD83A732B3EF884AD38A7AC@mail2.datel.ee> User-Agent: Mutt/1.8.3 (2017-05-23) 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 Tue, Aug 22, 2017 at 08:53:45AM +0000, Mart Palmas wrote: > > The string is converted to vector differently, when the string contains national charcters "äöüõžš". > I suppose it is true for all non-ascii characters. It could be fixed by patching the parser of text search. But maybe someone won't be happy about it, because it can break backward compatibility. > Results are: > 'bar' 'foo' 'toop/6' > '/6' 'bar' 'foo' 'tüüp' Do you expect first or second option? Someone may want not devide words by the "/" character, because "toop/6" can mean a path: =# select * from ts_debug('simple', 'toop/6'); alias | description | token | dictionaries | dictionary | lexemes -------+-------------------+--------+--------------+------------+---------- file | File or path name | toop/6 | {simple} | simple | {toop/6} (1 row) -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs