9.3 9.4 9.5 9.6 10 11 12 13
阿里云PostgreSQL 问题报告 纠错本页面

F.1. adminpack

adminpack提供了一些支持函数让pgAdmin与其他管理和维护工具能够利用它来提供一些额外的功能,例如远程服务器的日志文件管理功能。

F.1.1. 函数实现

通过adminpack实现的函数只能运行在超级用户权限下。这里列出了这些函数:

int8 pg_catalog.pg_file_write(fname text, data text, append bool)
bool pg_catalog.pg_file_rename(oldname text, newname text, archivename text)
bool pg_catalog.pg_file_rename(oldname text, newname text)
bool pg_catalog.pg_file_unlink(fname text)
setof record pg_catalog.pg_logdir_ls()
/* 为了pgAdmin的兼容性而重命名现有的后端函数*/
int8 pg_catalog.pg_file_read(fname text, data text, append bool)
bigint pg_catalog.pg_file_length(text)
int4 pg_catalog.pg_logfile_rotate()

<
/BODY >