找到postgresql.conf文件 添加 shared_preload_libraries = 'pg_stat_statements'pg_stat_statements.track = all重启postgresql 服务