pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Michael Gradek <mike@busbud.com>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13440: unaccent does not remove all diacritics
Date: Thu, 18 Jun 2015 16:30:46 -0400
Message-ID: <4348.1434659446@sss.pgh.pa.us> (raw)
In-Reply-To: <20150618202135.GB29350@alap3.anarazel.de>
References: <20150614063707.2734.30270@wrigleys.postgresql.org>
	<12238.1434304758@sss.pgh.pa.us>
	<CAEP8ZNWBH7Lc8KeaAxbPFJAC-RUUCKfBv5xcfOjqKvf4309Esw@mail.gmail.com>
	<20150615045056.GM133018@postgresql.org>
	<38161.1434372933@sss.pgh.pa.us>
	<CAEepm=0YVseDdN3Odjg2AZ2QvEPshqwJf=4zZbea5cwMQEP1Bw@mail.gmail.com>
	<CAEepm=2XAMTA8r3V682_aNZOz1kB3MdMvymDQmO7TA0qg99GAA@mail.gmail.com>
	<1790.1434492074@sss.pgh.pa.us>
	<CAEepm=2yw0so0ke8ZRy-qWOCrPRC2Ts0cs_6O2Zudkg=R+sR9Q@mail.gmail.com>
	<4186.1434655846@sss.pgh.pa.us>
	<20150618202135.GB29350@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Andres Freund <andres@anarazel.de> writes:
> On 2015-06-18 15:30:46 -0400, Tom Lane wrote:
>> Yeah, if we do anything other than adding new mappings, I suspect that
>> part could not be back-patched.  Maybe adding new mappings shouldn't
>> be back-patched either, though it seems relatively safe to me.

> Hm. Why is it safe to add new mappings? If previously something has been
> indexed with accents because unaccent didn't remove them and you're now
> adding a new mapping to unaccent, the tsearch query will lookup the
> wrong key (with accents removed)?

This is the same situation as any change whatsoever to tsearch
dictionaries.  The party line on that is that it usually doesn't
matter much, and if it does you can rebuild your indexes.

			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 (64+ messages)  latest in thread

Message-ID: <4348.1434659446@sss.pgh.pa.us>
Permalink:  ../4348.1434659446@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4348.1434659446@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, andres@anarazel.de, thomas.munro@enterprisedb.com, alvherre@2ndquadrant.com, mike@busbud.com
  Subject: Re: BUG #13440: unaccent does not remove all diacritics
  In-Reply-To: <4348.1434659446@sss.pgh.pa.us>
  References: <20150614063707.2734.30270@wrigleys.postgresql.org> <12238.1434304758@sss.pgh.pa.us> <CAEP8ZNWBH7Lc8KeaAxbPFJAC-RUUCKfBv5xcfOjqKvf4309Esw@mail.gmail.com> <20150615045056.GM133018@postgresql.org> <38161.1434372933@sss.pgh.pa.us> <CAEepm=0YVseDdN3Odjg2AZ2QvEPshqwJf=4zZbea5cwMQEP1Bw@mail.gmail.com> <CAEepm=2XAMTA8r3V682_aNZOz1kB3MdMvymDQmO7TA0qg99GAA@mail.gmail.com> <1790.1434492074@sss.pgh.pa.us> <CAEepm=2yw0so0ke8ZRy-qWOCrPRC2Ts0cs_6O2Zudkg=R+sR9Q@mail.gmail.com> <4186.1434655846@sss.pgh.pa.us> <20150618202135.GB29350@alap3.anarazel.de> <4348.1434659446@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