Is it possible to call PL/Python function from other PL/Python block as a normal Python function.
For example, I have a function f1:
create or replace function f1() returns text as $$
return "hello"
$$ language 'plpython3u';
I want call this function from other function or block, for example this anonymous block:
do $$
begin
...
t = f1()
...
end;
$$ language 'plpython3u';
This can be done using t = plpy.execute("select f1()")
, but I want, if it is possible, call it as a normal Python function to avoid type conversions (for example jsonb, etc).
(I'm using plpython3u ~ Python 3).