■ 인덱스 정보 조회하기

------------------------------------------------------------------------------------------------------------------------

 

SELECT

    A.TABLENAME

   ,A.INDEXNAME

   ,B.COLUMN_NAME

FROM PG_CATALOG.PG_INDEXES      A

    ,INFORMATION_SCHEMA.COLUMNS B

WHERE A.SCHEMANAME = 'public'

AND   A.TABLENAME = B.TABLE_NAME

ORDER BY

    A.TABLENAME ASC

   ,A.INDEXNAME ASC

   ,B.COLUMN_NAME;

 

------------------------------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요