Re: pg12 rc1 on CentOS8 depend python2

Поиск
Список
Период
Сортировка
От keisuke kuroda
Тема Re: pg12 rc1 on CentOS8 depend python2
Дата
Msg-id CANDwggLUSxjWog_3ygcL0s9wf8x1vPnxud4oedDs=mmHRH_5Tw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg12 rc1 on CentOS8 depend python2  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: pg12 rc1 on CentOS8 depend python2
Re: pg12 rc1 on CentOS8 depend python2
Список pgsql-general
Thank you for your reply!

Even if I don't need to install plpythonu,
RPM package includes "CONFIGURE = --with-python".
Therefore I think that I need to install python2 when RPM install.
Is my understanding correct?

Best Regards.
Keisuke Kuroda

2019年9月27日(金) 13:03 Adrian Klaver <adrian.klaver@aklaver.com>:
On 9/26/19 6:50 PM, keisuke kuroda wrote:
> Hi.
>
> I tried to install PostgreSQL12 RC1 on CentOS8.
>
> # dnf install postgresql12-server postgresql12-contrib
>
> ===============================================================================================
>   Package                           Arch                Version         
>                                       Repository                         
>    Size
> ===============================================================================================
> Installing:
>   postgresql12-contrib              x86_64             
>   12rc1-1PGDG.rhel8                                   
>   pgdg12-updates-testing              660 k
>   postgresql12-server               x86_64             
>   12rc1-1PGDG.rhel8                                   
>   pgdg12-updates-testing              5.3 M
> Installing dependencies:
>   python2                           x86_64             
>   2.7.15-22.module_el8.0.0+32+017b2cba                 AppStream         
>                    107 k
>   python2-libs                      x86_64             
>   2.7.15-22.module_el8.0.0+32+017b2cba                 AppStream         
>                    6.0 M
>   python2-pip                       noarch             
>   9.0.3-13.module_el8.0.0+32+017b2cba                  AppStream         
>                    2.0 M
>   python2-setuptools                noarch             
>   39.0.1-11.module_el8.0.0+32+017b2cba                 AppStream         
>                    643 k
>   postgresql12                      x86_64             
>   12rc1-1PGDG.rhel8                                   
>   pgdg12-updates-testing              1.8 M
>   postgresql12-libs                 x86_64             
>   12rc1-1PGDG.rhel8                                   
>   pgdg12-updates-testing              405 k
> Enabling module streams:
>   python27                                              2.7
>
> CentOS8 does not have python2 installed by default, But PostgreSQL is
> dependent on python2.
>
> Do we need to install python2 when we use PostgreSQL on CentOS8?

If it is installing plpythonu, then yes. From the docs:

https://www.postgresql.org/docs/12/plpython-python23.html

"The language named plpythonu implements PL/Python based on the default
Python language variant, which is currently Python 2. (This default is
independent of what any local Python installations might consider to be
their “default”, for example, what /usr/bin/python might be.) The
default will probably be changed to Python 3 in a distant future release
of PostgreSQL, depending on the progress of the migration to Python 3 in
the Python community."


>
> Best Regards.
> Keisuke Kuroda


--
Adrian Klaver
adrian.klaver@aklaver.com

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: pg12 rc1 on CentOS8 depend python2
Следующее
От: Daulat Ram
Дата:
Сообщение: RE: Monitor Postgres database status on Docker