설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은
결과보기
EnterpriseDB
총 게시물 74건
목록 글쓰기 이전글 다음글

각 데이터베이스의 사이즈 알아보기

글쓴이 : PostgresDBA   날짜 : 2012-12-21 (금) 23:03   조회 : 6989 인쇄
다음과 같은 쿼리로 간단히 알아볼수 있습니다.

postgres@[local]:5432:postgres] 
SQL> SELECT datname, pg_size_pretty(pg_database_size(datname)) FROM pg_database;
  datname  | pg_size_pretty 
-----------+----------------
 template1 | 6145 kB
 template0 | 6137 kB
 postgres  | 6238 kB
 scottdb   | 6350 kB
 ds2       | 25 MB
(5 rows)

아주 쉽죠잉?

댓글목록

목록 글쓰기 이전글 다음글

postgresdba.com