From: | Ni Ne <nineoften(at)hotmail(dot)com> |
---|---|
To: | "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | How to control which Python interpreter Postgres uses? |
Date: | 2021-11-01 21:48:13 |
Message-ID: | CY4PR19MB1160F38876C947812CA2CD63B58A9@CY4PR19MB1160.namprd19.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
I have started writing PL/Python scripts on a CentOS 7 box running PG 11. The issue I have is that by default my PG instance wants to use python3.6 instead of version 3.9 which I would prefer. I can see this by running a simple PL/Python script that reports the version of Python being used.
Postgres was installed using yum:
```
$ sudo yum list installed | grep postgres
postgresql11.x86_64 11.13-1PGDG.rhel7 @pgdg11
postgresql11-libs.x86_64 11.13-1PGDG.rhel7 @pgdg11
postgresql11-plpython3.x86_64 11.13-1PGDG.rhel7 @pgdg11
postgresql11-server.x86_64 11.13-1PGDG.rhel7 @pgdg11
```
I re-created the sym link for /usr/bin/python3 to point to /usr/local/bin/python3.9 however there is no change. It appears that the installation is hard-coded to point to /usr/bin/python3.6 as the Python interpreter.
How can I adjust my postgres settings to tell it which Python interpreter binary to use?
Thanks!
-nine
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-11-01 22:03:23 | Re: How to control which Python interpreter Postgres uses? |
Previous Message | Laurenz Albe | 2021-11-01 04:35:14 | Re: Know bloat percentage after auto vacuum |