How to get table pg_stat_user_functions.

修改配置文件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)

 

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

posted @ 2015-11-18 15:03  Li.Sang  阅读(220)  评论(0)    收藏  举报