CREATE OR REPLACE FUNCTION wrapperFunction() RETURNS bytea AS $BODY$ BEGIN SELECT function1() || function2(); END; $BODY$ LANGUAGE plpgsql
有没有办法并行调用
function1
function2
(它们是只读的,无副作用且独立)
不,你不能那样做。
要并行调用两个函数,您需要有两个数据库会话。