mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-21 18:03:22 +02:00
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
8 lines
257 B
MySQL
8 lines
257 B
MySQL
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);
|