pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Дмитрий Иванов <firstdismay@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Python3 for PostgreSQL 14
Date: Sat, 23 Oct 2021 13:40:21 -0700
Message-ID: <9ca83aed-84de-93d8-10a6-c98f43af4704@aklaver.com> (raw)
In-Reply-To: <CAPL5KHpnL3PKMRndf+Mesw7vJ8VrW1=BCgGCj88W=aKvb1zmrg@mail.gmail.com>
References: <CAPL5KHoHHExf=MGyWMF4fdsGmWkCw-=AZpHfbvGAcogkb--fbA@mail.gmail.com>
	<8b496ed8-3ef0-3a2a-564e-aec010ac9966@aklaver.com>
	<CAPL5KHpnL3PKMRndf+Mesw7vJ8VrW1=BCgGCj88W=aKvb1zmrg@mail.gmail.com>

On 10/23/21 13:00, Дмитрий Иванов wrote:
> Да.
> Python extension issues occurred on Windows Server 2012 and Windows 10 
> Pro. Experimentally, when installing version 3.7.4, everything worked. 

If you used the EDB installer for the Windows install of Postgres then 
you need to use their Language Pack to match up with what the plpython 
expects.

> This is my first time deploying Debian, and since I didn't want to 
> deploy multiple versions, I asked a question. I have installed Python 
> 3.10 x64. when faced with a lack of information on installing an 
> extension pack, it would be a good idea to highlight this in the help. 
> https://debian.pkgs.org/11/postgresql-amd64/postgresql-plpython3-14_14.0-1.pgdg110+1_amd64.deb.html 
> <https://debian.pkgs.org/11/postgresql-amd64/postgresql-plpython3-14_14.0-1.pgdg110+1_amd64.deb.html;:

This is the Debian project packages, not something the Postgres project 
controls.

The project does control this:

https://www.postgresql.org/download/linux/debian/

Which has the section

"Included in distribution"


that points out you may need to install additional packages.

This is also pointed out here:

https://www.postgresql.org/docs/current/plpython.html

"
Note

Users of source packages must specially enable the build of PL/Python 
during the installation process. (Refer to the installation instructions 
for more information.) Users of binary packages might find PL/Python in 
a separate subpackage.
"


> After that, I have successfully installed the extension and executed the 
> audit function

Does this mean everything is working now?

> 
> сб, 23 окт. 2021 г. в 09:04, Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>>:
> 
>     On 10/22/21 19:58, Дмитрий Иванов wrote:
>      > Good afternoon. Tell me what version of Python3 PostgreSQL 14 is
>      > targeting. I had problems with pairing version 12, working on 3.7.4
> 
>     1) Where did you install Postgres from?
> 
>     2) Define problems.
> 
>     3) To be clear you are trying to use plpython3u, correct?
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (6+ messages)  latest in thread

Message-ID: <9ca83aed-84de-93d8-10a6-c98f43af4704@aklaver.com>
Permalink:  ../9ca83aed-84de-93d8-10a6-c98f43af4704@aklaver.com/
Also on:    postgresql.org/message-id/9ca83aed-84de-93d8-10a6-c98f43af4704@aklaver.com

 · 

reply

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, firstdismay@gmail.com
  Subject: Re: Python3 for PostgreSQL 14
  In-Reply-To: <9ca83aed-84de-93d8-10a6-c98f43af4704@aklaver.com>
  References: <CAPL5KHoHHExf=MGyWMF4fdsGmWkCw-=AZpHfbvGAcogkb--fbA@mail.gmail.com> <8b496ed8-3ef0-3a2a-564e-aec010ac9966@aklaver.com> <CAPL5KHpnL3PKMRndf+Mesw7vJ8VrW1=BCgGCj88W=aKvb1zmrg@mail.gmail.com> <9ca83aed-84de-93d8-10a6-c98f43af4704@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