复制到 pgsql-12/lib 目录下就可以了 然后修改 postgresql.conf shared_preload_libraries = 'timescaledb, pg_stat_statements' # (change requires restart) pg_stat_statements.max = 10000 pg_stat_statements.track = all 最后重启postgrelSQL