-
[PPAS / Postgresql]해당 Instance 내의 INDEX 확인.Postgresql / PPAS/운영 2014. 11. 18. 17:33
SELECT i.relname AS indname,
i.relowner AS indowner,
idx.indrelid::regclass,
am.amname AS indam,
idx.indkey,
ARRAY(
SELECT pg_get_indexdef(idx.indexrelid, k + 1, TRUE)
FROM generate_subscripts(idx.indkey, 1) AS k
ORDER BY k
) AS indkey_names,
idx.indexprs IS NOT NULL AS indexprs,
idx.indpred IS NOT NULL AS indpred
FROM pg_index AS idx
JOIN pg_class AS i
ON i.oid = idx.indexrelid
JOIN pg_am AS am
ON i.relam = am.oid
AND i.relname NOT LIKE 'pg%';
'Postgresql / PPAS > 운영' 카테고리의 다른 글
- Table Space - (0) 2014.11.20 PostgreSQL 통계 정보 보기 (0) 2014.11.20 [PPAS / Postgresql] O/S swap memory 사용시 대처 요령 (0) 2014.11.18 [PPAS / Postgresql] PG Vacuum 이력 확인 (0) 2014.11.18 [PPAS / Postgresql] 테이블 사이즈 확인 (0) 2014.11.18