Ok, thanks guys. Let me check that.
On Sun, Aug 1, 2021 at 10:05 PM Tom Lane wrote:
> Adrian Klaver writes:
> > In that vein the OP could run:
>
> > DO $$
> > import sys
> > plpy.notice(sys.version)
> > $$ LANGUAGE plpython3u;
>
> > in the database to see what plpython3u is actually p
Adrian Klaver writes:
> In that vein the OP could run:
> DO $$
> import sys
> plpy.notice(sys.version)
> $$ LANGUAGE plpython3u;
> in the database to see what plpython3u is actually pointing at?
+1 ... looking at sys.path in the same way would also be useful.
On 8/1/21 8:51 AM, Tom Lane wrote:
Adrian Klaver writes:
Now it's possible that the wording didn't change exactly at the 2/3
boundary, but I doubt it. So it looks to me like the alleged plpython3u
language is actually invoking python 2.something, which is unlikely
to work well at all.
In
Adrian Klaver writes:
> On 8/1/21 7:40 AM, Ganesh Korde wrote:
>> I am trying to run a python function using the language plpython3u and
>> I am getting the below error, though I have installed psutil.
>>
>> postgres=# select * from get_psutil_mem();
>> ERROR: ImportError: No module named 'psut
On 8/1/21 7:40 AM, Ganesh Korde wrote:
Hi Everyone,
Environment
OS : Linux ubuntu 4.4.0-87-generic
Database: PostgreSQL 10.7 on x86_64-pc-linux-gnu,
Extension: plpython3u
Python version: Python 3.5.2
I am trying to run a python function using the language plpython3u and
I am getting the bel