첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
SELECT
    N.NSPNAME || '.' || C.RELNAME                 AS RELATION
   ,PG_SIZE_PRETTY(PG_TOTAL_RELATION_SIZE(C.OID)) AS TOTAL_SIZE
FROM      PG_CLASS     C
LEFT JOIN PG_NAMESPACE N ON N.OID = C.RELNAMESPACE
WHERE NSPNAME NOT IN ('pg_catalog', 'information_schema')
AND   C.RELKIND <> 'i'
AND   N.NSPNAME !~ '^pg_toast'
ORDER BY RELATION ASC;
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요