Thread: [ADMIN] Configure Python 3

[ADMIN] Configure Python 3

From
Ashok Kumar Tiwari
Date:
Hi 

Any one know how to configure  python 3 .
I want to create pllanguage3U in postgres.


--
Ashok Kumar Tiwari,
Senior Technical Consultant,
M:+91-9657628833


http://www.blystreecare.com/images/tree-clipart-4.gif Save a tree. Please avoid printing this email unless necessary. 

***** Email confidentiality notice *****

This message is private and confidential. If you have received this message in error, please notify us and remove it from your system.

Re: [ADMIN] Configure Python 3

From
Tom Lane
Date:
Ashok Kumar Tiwari <ashokt@ohumhealthcare.com> writes:
> Any one know how to configure  python 3 .
> I want to create pllanguage3U in postgres.

You have to have chosen python 3 when building postgres, typically
by setting the PYTHON variable while configuring/building.  See
https://www.postgresql.org/docs/current/static/plpython-python23.html
        regards, tom lane


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] Configure Python 3

From
Ashok Kumar Tiwari
Date:
i want to create language plpython3u but i am not able to create this language.

by this plpython3u i want to create some function for sending email from database.

if you know steps how configure and create plpython3u please help me. i west my two days but not success


On Wed, Sep 13, 2017 at 7:30 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Ashok Kumar Tiwari <ashokt@ohumhealthcare.com> writes:
> Any one know how to configure  python 3 .
> I want to create pllanguage3U in postgres.

You have to have chosen python 3 when building postgres, typically
by setting the PYTHON variable while configuring/building.  See
https://www.postgresql.org/docs/current/static/plpython-python23.html

                        regards, tom lane



--
Ashok Kumar Tiwari,
Senior Technical Consultant,
M:+91-9657628833


http://www.blystreecare.com/images/tree-clipart-4.gif Save a tree. Please avoid printing this email unless necessary. 

***** Email confidentiality notice *****

This message is private and confidential. If you have received this message in error, please notify us and remove it from your system.

Re: [ADMIN] Configure Python 3

From
Raghavendra
Date:



On Wed, Sep 13, 2017 at 12:05 PM, Ashok Kumar Tiwari <ashokt@ohumhealthcare.com> wrote:
i want to create language plpython3u but i am not able to create this language.

by this plpython3u i want to create some function for sending email from database.

if you know steps how configure and create plpython3u please help me. i west my two days but not success

​I have given an attempt of creating plpython3u language using SCL distribution of python3. If you are trying with other distribution the steps should be same IMO.


---
Regards,
Raghavendra
EnterpriseDB Corporation