mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-21 16:23:23 +02:00
24 lines
724 B
MySQL
24 lines
724 B
MySQL
CREATE FUNCTION database_size (name) RETURNS bigint
|
|
AS 'MODULE_PATHNAME', 'database_size'
|
|
LANGUAGE C STRICT;
|
|
|
|
CREATE FUNCTION relation_size (text) RETURNS bigint
|
|
AS 'MODULE_PATHNAME', 'relation_size'
|
|
LANGUAGE C STRICT;
|
|
|
|
CREATE FUNCTION pg_tablespace_size(oid) RETURNS bigint
|
|
AS 'MODULE_PATHNAME', 'pg_tablespace_size'
|
|
LANGUAGE C STRICT;
|
|
|
|
CREATE FUNCTION pg_database_size(oid) RETURNS bigint
|
|
AS 'MODULE_PATHNAME', 'pg_database_size'
|
|
LANGUAGE C STRICT;
|
|
|
|
CREATE FUNCTION pg_relation_size(oid) RETURNS bigint
|
|
AS 'MODULE_PATHNAME', 'pg_relation_size'
|
|
LANGUAGE C STRICT;
|
|
|
|
CREATE FUNCTION pg_size_pretty(bigint) RETURNS text
|
|
AS 'MODULE_PATHNAME', 'pg_size_pretty'
|
|
LANGUAGE C STRICT;
|