pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Léonard Benedetti <benedetti@mlpo.fr>
To: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Teodor Sigaev <teodor@sigaev.ru>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13440: unaccent does not remove all diacritics
Date: Sat, 12 Mar 2016 04:44:27 +0100
Message-ID: <56E3909B.5060702@mlpo.fr> (raw)
In-Reply-To: <56E386CD.9000705@gmx.net>
References: <20150614063707.2734.30270@wrigleys.postgresql.org>
	<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>
	<CAEepm=24OUabfGQM4JLnNCtwu_fvhuH34ObKTbnsEj5oKLWL8w@mail.gmail.com>
	<56A4426F.2040108@mlpo.fr>
	<CAEepm=3Th+3XRiOoXewLvL1DybCbKxjc0FE4o6XqaZZBLUSOvg@mail.gmail.com>
	<56BCAA91.1040208@sigaev.ru>
	<56BCF7A5.6020204@mlpo.fr>
	<56BCF98B.3040302@mlpo.fr>
	<56BE0BE6.5050003@sigaev.ru>
	<56C4E11D.5050809@mlpo.fr>
	<56E17AAD.6080605@sigaev.ru>
	<56E18614.90003@mlpo.fr>
	<56E18841.2000406@mlpo.fr>
	<56E2F496.3020904@sigaev.ru>
	<56E2FD12.2000102@mlpo.fr>
	<29444.1457720165@sss.pgh.pa.us>
	<56E386CD.9000705@gmx.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

12/03/2016 04:02, Peter Eisentraut wrote:
> On 3/11/16 1:16 PM, Tom Lane wrote:
>> =?UTF-8?Q?L=c3=a9onard_Benedetti?= <benedetti@mlpo.fr> writes:
>>> Despite all that, I think this transition to Python 3 is wise, it is
>>> available since 2008. Python 2 is legacy and its last version (2.7) is a
>>> “end-of-life release”.
>> Doesn't matter.  We support both Python 2 and 3, and this script must
>> do so as well, else it's not getting committed.  Any desupport for
>> Python 2 in PG is very far away; no one has even suggested we consider
>> it yet.
> This script is only run occasionally when the unaccent data needs to be
> updated from Unicode data, so it's not really that important what
> language and version it's written in.  That said, the mentioned reason
> for changing this to Python 3 is so that one can include Unicode
> characters into the source text, which I find undesirable in general
> (for PostgreSQL source code) and not very useful in this particular
> case.  I think the script can be kept in Python 2 style.  Making it
> upward compatible with Python 3 can be a separate (small) project.
>
I completely agree. This script does not have to be run regularly (as
mentioned, just when the Unicode standard changes or characters of
transliterator). Moreover, even when it should be done, users can wait
for the next version of PostgreSQL where the rules file has already been
updated. So, it is indeed a one-time shot, and the language of this
script is not so important.

However, concerning support for Unicode characters into the source code,
version of Python does not change much (both versions support it). The
change to Python 3 was rather done to anticipate the end of life of
Python 2. But as has been pointed out by Tom Lane, it's not going to
happen shortly (according to the PEP 0373: “The current plan is to
support [Python 2] for at least 10 years from the initial 2.7 release.
This means there will be bugfix releases until 2020.”). Furthermore, as
I stated above, adaptation to Python 3 was quite trivial, and could be
made easily in due course.

So I think we can keep just a version for Python 2 for now. If everyone
agrees, I'll update the files and patch.

Léonard Benedetti


-- 
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: <56E3909B.5060702@mlpo.fr>
Permalink:  ../56E3909B.5060702@mlpo.fr/
Also on:    postgresql.org/message-id/56E3909B.5060702@mlpo.fr

 · 

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: benedetti@mlpo.fr, peter_e@gmx.net, tgl@sss.pgh.pa.us, teodor@sigaev.ru
  Subject: Re: BUG #13440: unaccent does not remove all diacritics
  In-Reply-To: <56E3909B.5060702@mlpo.fr>
  References: <20150614063707.2734.30270@wrigleys.postgresql.org> <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> <CAEepm=24OUabfGQM4JLnNCtwu_fvhuH34ObKTbnsEj5oKLWL8w@mail.gmail.com> <56A4426F.2040108@mlpo.fr> <CAEepm=3Th+3XRiOoXewLvL1DybCbKxjc0FE4o6XqaZZBLUSOvg@mail.gmail.com> <56BCAA91.1040208@sigaev.ru> <56BCF7A5.6020204@mlpo.fr> <56BCF98B.3040302@mlpo.fr> <56BE0BE6.5050003@sigaev.ru> <56C4E11D.5050809@mlpo.fr> <56E17AAD.6080605@sigaev.ru> <56E18614.90003@mlpo.fr> <56E18841.2000406@mlpo.fr> <56E2F496.3020904@sigaev.ru> <56E2FD12.2000102@mlpo.fr> <29444.1457720165@sss.pgh.pa.us> <56E386CD.9000705@gmx.net> <56E3909B.5060702@mlpo.fr>

* 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