From: Adrian Klaver <adrian.klaver@aklaver.com>
To: keisuke kuroda <keisuke.kuroda.3862@gmail.com>
To: pgsql-general@postgresql.org
To: pgsql-pkg-yum@postgresql.org
Subject: Re: pg12 rc1 on CentOS8 depend python2
Date: Thu, 26 Sep 2019 21:03:45 -0700
Message-ID: <dab857f5-9b53-cf55-c21d-fd2996093032@aklaver.com> (raw)
In-Reply-To: <CANDwggJsyasnb7eJ-Bu_3hTDuH2tCLoeWckkH-xbGh73VYHv5A@mail.gmail.com>
References: <CANDwggJsyasnb7eJ-Bu_3hTDuH2tCLoeWckkH-xbGh73VYHv5A@mail.gmail.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, keisuke.kuroda.3862@gmail.com, pgsql-pkg-yum@postgresql.org
Subject: Re: pg12 rc1 on CentOS8 depend python2
In-Reply-To: <dab857f5-9b53-cf55-c21d-fd2996093032@aklaver.com>
References: <CANDwggJsyasnb7eJ-Bu_3hTDuH2tCLoeWckkH-xbGh73VYHv5A@mail.gmail.com> <dab857f5-9b53-cf55-c21d-fd2996093032@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox