Misc functions for administrative purposes size.c: ----------------------------- int8 pg_tablespace_size(oid) int8 pg_database_size(oid) int8 pg_relation_size(oid) text pg_size_pretty(int8) genfile.c (superuser only): ----------------------------- record pg_file_stat(fname text) int8 pg_file_length(fname text) text pg_file_read(fname text, offs int8, len int8) int8 pg_file_write(fname text, data text, append bool) bool pg_file_rename(oldname text, newname text) bool pg_file_rename(oldname text, newname text, archivname text) bool pg_file_unlink(fname text) setof text pg_dir_ls(dirname text, bool fullpath) misc.c (superuser only): ----------------------------- int4 pg_reload_conf() bool pg_logfile_rotate() setof record pg_logdir_ls() VIEW pg_logdir_ls(filetime timestamp, pid int4, filename text)