修改配置文件postgres.conf

 

track_functions = all                   # none, pl, all

或者 在当前事物中设置

postgres=# set track_functions = 'all';

 

postgres=# select * from pg_stat_user_functions ;
 funcid | schemaname | funcname | calls | total_time | self_time 
--------+------------+----------+-------+------------+-----------
(0 rows)

 

修改完成后,重启数据库,就会有数据了。  

相关文章:

  • 2022-03-01
  • 2021-11-15
  • 2022-02-10
  • 2022-01-28
  • 2021-12-01
  • 2022-01-17
  • 2022-02-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-14
  • 2021-06-06
  • 2021-10-14
  • 2021-06-28
  • 2021-09-26
  • 2022-12-23
相关资源
相似解决方案