Re: Switching PL/Python to Python 3 by default in PostgreSQL 12

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Switching PL/Python to Python 3 by default in PostgreSQL 12
Дата
Msg-id 2163.1562603874@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Switching PL/Python to Python 3 by default in PostgreSQL 12  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> But I could support having a way for individual installations to change
> what the synonym means locally.  Perhaps we could think about how to do
> that in conjunction with the project of getting rid of pg_pltemplate
> that's been kicked around before [1][2][3].

... actually, if we had that (i.e., languages fully defined by extensions
with no help from pg_pltemplate), wouldn't this be nearly trivial?
I'm imagining two extensions, one that defines plpythonu to call the
python2 code and one that defines it to call the python3 code, and you
install whichever you want.  They're separate from the extensions that
define plpython2u and plpython3u, so mix and match as you wish.

            regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: errbacktrace
Следующее
От: Paul A Jungwirth
Дата:
Сообщение: Re: range_agg