Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5hBl-0007Rr-6h for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Jun 2015 21:17:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z5hBk-0001cS-O2 for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Jun 2015 21:17:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z5hBk-0001cL-4K for pgsql-bugs@postgresql.org; Thu, 18 Jun 2015 21:17:32 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Z5hBf-0004sB-35 for pgsql-bugs@postgresql.org; Thu, 18 Jun 2015 21:17:31 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [137.122.64.66]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 847D14012CB; Thu, 18 Jun 2015 14:17:23 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id A7A443D58; Thu, 18 Jun 2015 18:17:22 -0300 (CLT) Date: Thu, 18 Jun 2015 18:17:22 -0300 From: Alvaro Herrera To: Tom Lane Cc: Thomas Munro , Michael Gradek , PostgreSQL Bugs Subject: Re: BUG #13440: unaccent does not remove all diacritics Message-ID: <20150618211722.GJ133018@postgresql.org> References: <20150614063707.2734.30270@wrigleys.postgresql.org> <12238.1434304758@sss.pgh.pa.us> <20150615045056.GM133018@postgresql.org> <38161.1434372933@sss.pgh.pa.us> <1790.1434492074@sss.pgh.pa.us> <4186.1434655846@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4186.1434655846@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) 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 Tom Lane wrote: > Thomas Munro writes: > > On Wed, Jun 17, 2015 at 10:01 AM, Tom Lane wrote: > >> I'm really dubious that we should be translating those ligatures at > >> all (since the standard file is only advertised to do "unaccenting"), > >> and if we do translate them, shouldn't they convert to AE, ae, etc? > > > Perhaps these conversions are intended only for comparisons, full text > > indexing etc but not showing the converted text to a user, in which > > case it doesn't matter too much if the conversions are a bit weird > > (œuf and oeuf are interchangeable in French, but euf is nonsense). > > But can we actually change them? That could cause difficulty for > > users with existing unaccented data stored/indexed... But I suppose > > even adding new mappings could cause problems. > > 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. To me, conceptually what unaccent does is turn whatever junk you have into a very basic common alphabet (ascii); then it's very easy to do full text searches without having to worry about what accents the people did or did not use in their searches. If we say "okay, but that funny char is not an accent so let's leave it alone" then the charter doesn't sound so useful to me. The cases I care about are okay anyway, because all the funny chars in spanish are already covered; and maybe German people always enter their queries using the funny ss thing I can't even write, and then this is not a problem for them. Regarding back-patching unaccent.rules changes as discussed downthread, I think it's okay to simply document that any indexes using the module should be reindexed immediately after upgrading to that minor version. The consequence of not doing so is not *that* serious anyway. But then, since I'm not actually affected in any way, I'm not strongly holding this position either. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs