# PostgreSQL DB 공간 절약하기

> Clean Markdown view of GeekNews topic #3674. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=3674](https://news.hada.io/topic?id=3674)
- GeekNews Markdown: [https://news.hada.io/topic/3674.md](https://news.hada.io/topic/3674.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2021-02-02T13:46:06+09:00
- Updated: 2021-02-02T13:46:06+09:00
- Original source: [hakibenita.com](https://hakibenita.com/postgresql-unused-index-size)
- Points: 11
- Comments: 0

## Topic Body

- 사용하지 않는 인덱스 찾아서 지우기

ㅤ→ 인덱스 통계에서 idx_scan 및 read/fetch 로 확인

- 인덱스와 테이블의 Bloat (부풀려진 공간) 제거하기

ㅤ→ 인덱스 다시 생성 하기 또는 리빌드

ㅤ→ B-Tree Deduplication 적용하기(v13)

ㅤ→ 테이블 Vacuum, pg_repack

- NULL이 많은 컬럼에 인덱스가 걸려있으면, non-NULL에만 Partial 인덱스 적용하기

## Comments



_No public comments on this page._
