Hi
2016-03-28 6:14 GMT+02:00 Sridhar N Bamandlapally <sridhar.bn1@xxxxxxxxx>:
HiIs there any way to create nested function?
Some languages supports this feature, like plv8, but plpgsql doesn't support it,
You have to use two function and some implementation of session variables.
Regards
Pavel
oracle to postgres migration required super function variable reference into nested function without nested function parameterOracle sample:-------------------------------create or replace function f1(n number) return numberisvs number:=1;function nf1(m number) return number isbeginreturn vs + m + n;end;beginreturn nf1(2);end;/run:--------SQL> select f1(9) from dual;F1(9)----------12ThanksSridhar BN