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

https://blog.csdn.net/msdnchina/article/details/60773912

相关文章:

  • 2021-11-08
  • 2021-04-05
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-06
  • 2022-03-04
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2021-10-23
相关资源
相似解决方案