Re: pg12 rc1 on CentOS8 depend python2

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: keisuke kuroda <keisuke(dot)kuroda(dot)3862(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org, pgsql-pkg-yum(at)postgresql(dot)org
Subject: Re: pg12 rc1 on CentOS8 depend python2
Date: 2019-09-27 04:03:45
Message-ID: dab857f5-9b53-cf55-c21d-fd2996093032@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-pkg-yum

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(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message keisuke kuroda 2019-09-27 04:24:15 Re: pg12 rc1 on CentOS8 depend python2
Previous Message Pankaj Jangid 2019-09-27 03:06:03 Re: managing primary key conflicts while restoring data to table with existing data

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message keisuke kuroda 2019-09-27 04:24:15 Re: pg12 rc1 on CentOS8 depend python2
Previous Message keisuke kuroda 2019-09-27 01:50:46 pg12 rc1 on CentOS8 depend python2