Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- MSsql
- 자바스크립트
- WebView
- SpringSource Tool Suite
- 웹 서비스
- Web Service
- jsp
- 컬럼명
- STS
- decompiler
- MS-SQL
- asp.net
- TextBox
- 웹뷰
- scrollView
- 자바
- varags
- Bootstrap
- Java
- Android
- 이클립스
- Redirect
- C#
- MANTIS
- Maven
- 안드로이드
- javascript
- html
- Apache Lucene
- Eclipse
Archives
- Today
- Total
bboks.net™
postgres 스키마 크기 출력 본문
query
SELECT schema_name, pg_size_pretty(sum(table_size)::bigint) as "disk space", (sum(table_size) / pg_database_size(current_database())) * 100 as "percent" FROM ( SELECT pg_catalog.pg_namespace.nspname as schema_name, pg_relation_size(pg_catalog.pg_class.oid) as table_size FROM pg_catalog.pg_class JOIN pg_catalog.pg_namespace ON relnamespace = pg_catalog.pg_namespace.oid ) t GROUP BY schema_name ORDER BY schema_name;
출력 결과