[pgsql-jp: 30028] Re: 使用しているファイルサイズを調べたい
sugita @ sra.co.jp
sugita @ sra.co.jp
2003年 5月 22日 (木) 18:00:09 JST
杉田です。
From: "Emiko Kishi" <kishi @ b-b-net.com>
Subject: [pgsql-jp: 30027] Re: 使用しているファイルサイズを調べたい
Date: Thu, 22 May 2003 17:51:42 +0900
;;; # ファイルサイズが見れればなぁ・・・
contrib/dbsize
==== README.dbsize =====
This module contains two functions that report the size of a given
database or relation. E.g.,
SELECT database_size('template1');
SELECT relation_size('pg_class');
These functions report the actual file system space. Thus, users can
avoid digging through the details of the database directories.
Copy this directory to contrib/dbsize in your PostgreSQL source tree.
Then just run make; make install.
というのもあります。7.3 のマニュアルの Chapter 11. Monitoring Disk Usage に少
し説明があります。
Kenji Sugita
pgsql-jp メーリングリストの案内