您好,登錄后才能下訂單哦!
查詢索引的有效性
select d.tablename,a.relname,(case c.indisvalid when true then '有效' else '無效' end) isvalid ,c.indkey from pg_class a ,pg_namespace b ,pg_index c ,pg_indexes d where a.relkind = 'i' and a.relname=b.oid and b.nspname='public' and a.oid = c.indexrelid and d.indexname=a.relname order by d.tablename;
表查詢
select * from pg_table where schemaname = 'xxx';
查詢索引或者表的大小
select pg_size_pretty(pg_relaion_size('test'));
統計表的行數
select a.relname,a.reltuples::int from pg_class a ,pg_namespace b where a.relnamespace=b.oid and b.nspname='public' and a.relkind='r' order by a.relname;
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。