SELECTa.datname,pg_size_pretty(pg_database_size(a.datid))ASsize,CAST(blks_hit/(blks_read+blks_hit+0.000001)*100.0AS NUMERIC(5,2))AScache,CAST(xact_commit/(xact_rollback+xact_commit+0.000001)*100.0AS NUMERIC(5,2))ASsuccess FROMpg_stat_databasea ORDERBYpg_database_size(a.datid)DESC;
postgresql 查看tablespace命中率
发布时间:2020-12-13 17:17:23 所属栏目:百科 来源:网络整理
导读:SELECTa.datname,pg_size_pretty(pg_database_size(a.datid))ASsize,CAST(blks_hit/(blks_read+blks_hit+0.000001)*100.0AS NUMERIC(5,2))AScache,CAST(xact_commit/(xact_rollback+xact_commit+0.000001)*100.0AS NUMERIC(5,2))ASsuccess FROMpg_stat_datab
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |