summaryrefslogtreecommitdiffstats
path: root/help.h
blob: 2a23952d893210667dd5ae0c7bf976d2b9778230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* Simple help text displayed by "show_help" */

#ifndef _HELP_H_
#define _HELP_H_

char	   *help_text = "\n\
A top users display for PostgreSQL\n\
\n\
These single-character commands are available:\n\
\n\
^L      - redraw screen\n\
<sp>    - update screen\n\
A       - EXPLAIN ANALYZE (UPDATE/DELETE safe)\n\
C       - toggle the use of color\n\
E       - show execution plan (UPDATE/DELETE safe)\n\
I       - show I/O statistics per process (Linux only)\n\
L       - show locks held by a process\n\
M       - sort by memory usage\n\
N       - sort by pid\n\
P       - sort by CPU usage\n\
S       - show pg_stat_statements statistics\n\
Q       - show current query of a process\n\
T       - sort by time\n\
X       - show user index statistics\n\
c       - toggle the display of process commands\n\
d       - change number of displays to show\n\
e       - list errors generated by last \"kill\" or \"renice\" command\n\
h or ?  - help; show this text\n\
i       - toggle the displaying of idle processes\n\
k       - kill processes; send a signal to a list of processes\n\
          not avilable when connected to a remote database\n\
n or #  - change number of processes to display\n\
o       - specify sort order (%s)\n\
          index stats (idx_scan, idx_tup_fetch, idx_tup_read)\n\
          i/o stats (%s)\n\
q       - quit\n\
r       - renice a process\n\
          not avilable when connected to a remote database\n\
s       - change number of seconds to delay between updates\n\
t       - Toggle between cumulative or differential statistics when viewing\n\
          user table or user index statistics.\n\
u       - display processes for only one user (+ selects all users)\n\
\n\
Not all commands are available on all systems.\n\
";

#endif   /* _HELP_H_ */