VERTICA/04. Admin 관리

버티카 프로젝션과 OS 물리적 영역간 매핑 방법

버리까 2019. 1. 23. 16:52



메모리 영역(wos) + 디스크 영역(ros) 의 테이블 및 프로젝션 매핑확인 쿼리



select a.node_name

     , a.schema_name

     , p.anchor_table_name

     , 'ls -lrt '||d.location_path||'/'||substring(a.storage_oid::varchar,15,17)||'/'||a.sal_storage_id||'*' as proj_full_path

     , p.projection_name

     , a.storage_type

     , a.total_row_count

     , a.deleted_row_count

     , a.used_bytes

     , a.grouping

  from storage_containers a inner join storage_locations d on a.node_name = d.node_name

                            inner join projections p on a.projection_id = p.projection_id

where p.anchor_table_name = '테이블명'

and a.node_name = '노드명'

order by 1,5,4

;


근데 왠만해서는 볼일이 없지 않을까...