lightdb for postgresql PL/pgSQL perform、execute、call区别
postgres=# \timing on Timing is on. postgres=# DO $$ DECLARE i int; BEGIN FOR i IN 1..1000000 LOOP execute 'select nextval(''idx_seq'')'; END LOOP; END$$; DO Time: 6321.316 ms (00:06.321)
perform no_return_value_func();
execute sql_stmt into xxx;
execute select has_return_value_func() into my_var;
call proc();
https://stackoverflow.com/questions/42920998/pl-pgsql-perform-vs-execute