Re: pg12 rc1 on CentOS8 depend python2

From: keisuke kuroda <keisuke(dot)kuroda(dot)3862(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: 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:24:15
Message-ID: CANDwggLUSxjWog_3ygcL0s9wf8x1vPnxud4oedDs=mmHRH_5Tw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-pkg-yum

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Daulat Ram 2019-09-27 05:25:28 RE: Monitor Postgres database status on Docker
Previous Message Adrian Klaver 2019-09-27 04:03:45 Re: pg12 rc1 on CentOS8 depend python2

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Devrim Gündüz 2019-09-27 06:41:25 Re: rpm small typo
Previous Message Adrian Klaver 2019-09-27 04:03:45 Re: pg12 rc1 on CentOS8 depend python2