当前位置:   article > 正文

Postgresql查询表和索引空间_pg的二维空间索引

pg的二维空间索引

--查询表空间 
planet_t1=# select pg_relation_size('s_ways.ways_road');
 pg_relation_size
------------------
      60497190912
(1 row)


planet_t1=# select pg_size_pretty(pg_relation_size('s_ways.ways_road'));
 pg_size_pretty
----------------
 56 GB
(1 row)


planet_t1=# select pg_size_pretty(pg_relation_size('public.ways'));
 pg_size_pretty
----------------
 225 GB
(1 row)


planet_t1=# select pg_size_pretty(pg_indexes_size('public.ways'));
 pg_size_pretty
----------------
 80 GB
(1 row)

--查询索引空间
planet_t1=# select pg_size_pretty(pg_indexes_size('s_ways.ways_road'));
 pg_size_pretty
----------------
 18 GB
(1 row)
 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/722270
推荐阅读
相关标签
  

闽ICP备14008679号