1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

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
This commit is contained in:
Bruce Momjian
2002-02-22 23:05:35 +00:00
parent 40bda4cbc4
commit ad0787b2bd
6 changed files with 203 additions and 2 deletions

View File

@ -0,0 +1,7 @@
CREATE FUNCTION database_size (name) RETURNS bigint
AS '@MODULE_FILENAME@', 'database_size'
LANGUAGE C WITH (isstrict);
CREATE FUNCTION relation_size (name) RETURNS bigint
AS '@MODULE_FILENAME@', 'relation_size'
LANGUAGE C WITH (isstrict);