Re: [GENERAL] Call postgres PL/Python stored function from another PL/Python block.

2016-01-13 Thread lodopidolo
Ok, thank you very much. 2016-01-13 19:04 GMT+01:00 Adrian Klaver : > On 01/13/2016 07:47 AM, lodopidolo wrote: > >> Hello. It is possible to call al PL/Python stored function natively from >> another PL/Python function? >> >> Something like: >> >> |createorreplace functionf1()returns text as$$re

Re: [GENERAL] Call postgres PL/Python stored function from another PL/Python block.

2016-01-13 Thread Adrian Klaver
On 01/13/2016 07:47 AM, lodopidolo wrote: Hello. It is possible to call al PL/Python stored function natively from another PL/Python function? Something like: |createorreplace functionf1()returns text as$$return"hello"$$language 'plpython3u';| |do $$begin...t =f1()...end;$$language 'plpython3u

Re: [GENERAL] Call postgres PL/Python stored function from another PL/Python block.

2016-01-13 Thread Jim Nasby
On 1/13/16 9:47 AM, lodopidolo wrote: Hello. It is possible to call al PL/Python stored function natively from another PL/Python function? Stackoverflow is stupid and won't let me post there, but here's what you want: There is no special capability to call other plpython functions. You need

Re: [GENERAL] Call postgres PL/Python stored function from another PL/Python block.

2016-01-13 Thread Pavel Stehule
Hi 2016-01-13 16:47 GMT+01:00 lodopidolo : > Hello. It is possible to call al PL/Python stored function natively from > another PL/Python function? > The function created by CREATE OR REPLACE FUNCTION statement can be called only via special interface, or via SQL executor, so you cannot to call

[GENERAL] Call postgres PL/Python stored function from another PL/Python block.

2016-01-13 Thread lodopidolo
Hello. It is possible to call al PL/Python stored function natively from another PL/Python function? Something like: create or replace function f1() returns text as $$ return "hello"$$ language 'plpython3u'; do $$begin ... t = f1() ...end;$$ language 'plpython3u'; Regards. (th