The pid column can be joined to the
- procpid column of the
+ pid column of the
pg_stat_activity view to get more
information on the session holding or waiting to hold each lock.
Also, if you are using prepared transactions, the
identifier from pg_stat_activity>, use this query:
SELECT to_hex(EXTRACT(EPOCH FROM backend_start)::integer) || '.' ||
- to_hex(procpid)
+ to_hex(pid)
FROM pg_stat_activity;
Specifies the number of bytes reserved to track the currently
executing command for each active session, for the
- pg_stat_activity>.current_query> field.
+ pg_stat_activity>.query> field.
The default value is 1024. This parameter can only be set at server
start.
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 procpid column of the
+ the pid column of the
pg_stat_activity view, or by listing the
postgres processes on the server (using
example, to show the
PID>s and current queries of all server processes:
-SELECT pg_stat_get_backend_pid(s.backendid) AS procpid,
- pg_stat_get_backend_activity(s.backendid) AS current_query
+SELECT pg_stat_get_backend_pid(s.backendid) AS pid,
+ pg_stat_get_backend_activity(s.backendid) AS query
FROM (SELECT pg_stat_get_backend_idset() AS backendid) AS s;
statement-status
(const char *)
Probe that fires anytime the server process updates its
- pg_stat_activity>.current_query> status.
+ pg_stat_activity>.status>.
arg0 is the new status string.
|
{
{"track_activity_query_size", PGC_POSTMASTER, RESOURCES_MEM,
- gettext_noop("Sets the size reserved for pg_stat_activity.current_query, in bytes."),
+ gettext_noop("Sets the size reserved for pg_stat_activity.query, in bytes."),
NULL,
},
&pgstat_track_activity_query_size,