代码块中调用存储过程 CREATE OR REPLACE PROCEDURE simple_procedure() AS $$ BEGIN raise notice 'That''s all folks!'; END ; $$ LANGUAGE plpgsql; do language plpgsql $$ declare sql text; begin simple_procedure(); end; $$;