1. lsof | grep deleted 명령어를 이용하여 삭제된 프로세스 ia를 찾아서 kill -9 PID를 통해 실제 여유공간을 반영
* lsof는 list open files의 약자로 시스템에서 열려있는 파일에 대한 정보를 출력해주는 명령어다.
2. Postgresql Vacuum 실행
-- DB 전체 full vacuum
vacuum full analyze;
-- DB 전체 간단하게 실행
vacuum verbose analyze;
-- 해당 테이블만 간단하게 실행
vacuum analyze [테이블 명];
-- 특정 테이블만 full vacuum
vacuum full [테이블 명];
* full 옵션 실행 시 lock이 걸리므로 운영중에 해당 옵션 사용을 권장하지 않는다.