Re: Resolving the python 2 -> python 3 mess

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Resolving the python 2 -> python 3 mess
Дата
Msg-id 306e39e8-e9c9-5bf0-34a9-dcf35ca8fc39@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Resolving the python 2 -> python 3 mess  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Resolving the python 2 -> python 3 mess
Список pgsql-hackers
On 2020-02-19 05:39, Tom Lane wrote:
> After thinking about this awhile longer, I'm starting to believe
> we should do some of each.  That is, the stub replacement for
> plpython2.so should redirect "plpythonu" functions to plpython3.so,
> but throw errors for "plpython2u" functions.

I'm not sure these complications are worth it.  They don't match 
anything that is done in other Python 2/3 porting schemes.  I think 
there should just be an option "plpython is: {2|3|don't build it at 
all}".  Then packagers can match this to what their plan for 
/usr/bin/python* is -- which appears to be different everywhere.

Your scheme appears to center around the assumption that people will 
want to port their functions at the same time as not building plpython2u 
anymore.  This would defeat testing functions before and after in the 
same installation.  I think the decisions of what plpythonu points to 
and which variants are built at all should be separate.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Memory-Bounded Hash Aggregation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Resolving the python 2 -> python 3 mess