2010-09-20 22:08:53 +02:00
|
|
|
<!-- doc/src/sgml/adminpack.sgml -->
|
2007-12-06 05:12:10 +01:00
|
|
|
|
2007-12-02 23:33:20 +01:00
|
|
|
<sect1 id="adminpack">
|
2007-11-11 00:30:46 +01:00
|
|
|
<title>adminpack</title>
|
2007-12-06 05:12:10 +01:00
|
|
|
|
2007-12-02 23:33:20 +01:00
|
|
|
<indexterm zone="adminpack">
|
|
|
|
<primary>adminpack</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
2007-11-11 00:30:46 +01:00
|
|
|
<para>
|
2007-12-06 05:12:10 +01:00
|
|
|
<filename>adminpack</> provides a number of support functions which
|
|
|
|
<application>pgAdmin</> and other administration and management tools can
|
|
|
|
use to provide additional functionality, such as remote management
|
|
|
|
of server log files.
|
2007-11-11 00:30:46 +01:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<sect2>
|
2011-01-29 19:00:18 +01:00
|
|
|
<title>Functions Implemented</title>
|
2007-12-06 05:12:10 +01:00
|
|
|
|
2007-11-11 00:30:46 +01:00
|
|
|
<para>
|
2007-12-06 05:12:10 +01:00
|
|
|
The functions implemented by <filename>adminpack</> can only be run by a
|
|
|
|
superuser. Here's a list of these functions:
|
|
|
|
|
|
|
|
<programlisting>
|
|
|
|
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()
|
|
|
|
|
|
|
|
/* Renaming of existing backend functions for pgAdmin compatibility */
|
|
|
|
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()
|
|
|
|
</programlisting>
|
2007-11-11 00:30:46 +01:00
|
|
|
</para>
|
2007-12-06 05:12:10 +01:00
|
|
|
|
2007-11-11 00:30:46 +01:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|