摘要: 查询表预估占用的页数量 select relname,relpages from pg_class where relnamespace::regnamespace::text = '模式名' and relname = '表名'; 实际数据页数量 -- 实际占用的数据页 select count( 阅读全文
posted @ 2025-06-05 23:41 kahnyao 阅读(10) 评论(0) 推荐(0)
摘要: 平时查询一些系统表或视图,可以使用字段名或者表名进行模糊查询 根据表或视图关键字查询 select table_catalog,table_schema,table_name,table_type from information_schema.tables where table_type in 阅读全文
posted @ 2025-06-05 23:28 kahnyao 阅读(55) 评论(0) 推荐(0)