설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은


총 게시물 73건, 최근 0 건
   

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

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

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