summaryrefslogtreecommitdiff
path: root/contrib/dbsize/README.dbsize
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-02-22 23:05:35 +0000
committerBruce Momjian <bruce@momjian.us>2002-02-22 23:05:35 +0000
commitad0787b2bd3403f0c14c72a9ea2e13501f90b7d3 (patch)
tree5461119bd871534af3f48f05f5efb7041314516c /contrib/dbsize/README.dbsize
parent40bda4cbc4079c196090968f02fce58ed2274c55 (diff)
I've written on like that a while ago:
http://webmail.postgresql.org/~petere/dbsize.html The tarball can be rolled into contrib -- now that I think of it I don't know why I never did that. Never imagined this would have anything to do with that TODO item, though. I figured oid2name accomplished that. Peter Eisentraut peter_e@gmx.net
Diffstat (limited to 'contrib/dbsize/README.dbsize')
-rw-r--r--contrib/dbsize/README.dbsize11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/dbsize/README.dbsize b/contrib/dbsize/README.dbsize
new file mode 100644
index 00000000000..879341cd02e
--- /dev/null
+++ b/contrib/dbsize/README.dbsize
@@ -0,0 +1,11 @@
+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.