System Administration Functions
System Administration Functions
The functions described in this section are used to control and monitor a Tacnode installation.
Configuration Settings Functions
Table 8.67 shows the functions available to query and alter run-time configuration parameters.
Table Configuration Settings Functions
Function Description Example(s) |
---|
Returns the current value of the setting
|
Sets the parameter
|
Server Signaling Functions
The functions shown in Table 8.68 send control signals to other server processes. Use of these functions is restricted to superusers by default but access may be granted to others using GRANT
, with noted exceptions.
Each of these functions returns true
if the signal was successfully sent and false
if sending the signal failed.
Table Server Signaling Functions
Function Description |
---|
Cancels the current query of the session whose backend process has the specified process ID. This is also allowed if the calling role is a member of the role whose backend is being canceled or the calling role has been granted |
Terminates the session whose backend process has the specified process ID. This is also allowed if the calling role is a member of the role whose backend is being terminated or the calling role has been granted If |
pg_cancel_backend
and pg_terminate_backend
send signals (SIGINT or SIGTERM respectively) to backend processes identified by process ID. The process ID of an active backend can be found from the pid
column of the pg_stat_activity
view, or by listing the postgres
processes on the server (using ps on Unix or the Task Manager on Windows). The role of an active backend can be found from the usename
column of the pg_stat_activity
view.