摘要: 查看表及所属索引的大小with tmp_table as ( select pc.oid as taboid, pc.* from pg_class pc where 1=1 and pc.relkind='r... 阅读全文
posted @ 2017-08-30 15:44 peiybpeiyb 阅读(800) 评论(0) 推荐(0)
摘要: pg_stat_statements模块提供了一种跟踪执行的所有SQL语句的统计信息的方法。这个模块必须改写配置文件postgresql.conf中的shared_preload_libraries变量,这是因为他需要额外的共享内存。 同时也意味着需要重启服... 阅读全文
posted @ 2017-08-30 11:05 peiybpeiyb 阅读(247) 评论(0) 推荐(0)