ããæ¹ç¥ããªãããããã¤ãæç´ã« > select pg_relation_size('table_name'); > select pg_database_size('db_name'); ã¨ããã¦ããã ãã©ã¾ã¨ãã¦ããã£ã¨æ¦ç®å¤ãåå¾ãããå ´åã¯ã©ããããããã調ã¹ãã ãã¼ã¿ãã¼ã¹ã®ãµã¤ãºåå¾ ãã¼ã¿ãã¼ã¹åã¨OIDã®åå¾ oid2nameã使ãã次ã®SQLã§ã > select datid,datname from pg_stat_database; OIDãã¨ã®ä½¿ç¨å®¹é $DATADIR/base/ã®ãã¼ã¿ãç´æ¥èª¿ã¹ããOIDãã¨ã®ãã£ã¬ã¯ããªãä½ããã¦ããã®ã§ $ cd $DATADIR/base $ du -sk * ã¨ããããå¾ã¯OIDãããã¼ã¿ãã¼ã¹åãç´ä»ããã ãã¼ãã«ã®ãµã¤ãºåå¾ ãã¼ã¿ãã¼ã¹ã®ã¨ãã¨ã»ã¼åãã ãã¼ãã«åã¨OIDåå¾ oid2name -d db_
{{#tags}}- {{label}}
{{/tags}}