|
87 | 87 | pg_activity [options] [connection string] |
88 | 88 |
|
89 | 89 | Configuration: |
90 | | - --profile PROFILE Configuration profile matching a PROFILE.conf file in |
| 90 | + -P PROFILE, --profile PROFILE |
| 91 | + Configuration profile matching a PROFILE.conf file in |
91 | 92 | ${XDG_CONFIG_HOME:~/.config}/pg_activity/ or |
92 | | - /etc/pg_activity/. |
| 93 | + /etc/pg_activity/, or a built-in profile. |
93 | 94 |
|
94 | 95 | Options: |
95 | 96 | --blocksize BLOCKSIZE |
96 | 97 | Filesystem blocksize (default: 4096). |
97 | | - --rds Enable support for AWS RDS (implies --no-tempfiles and filters out the rdsadmin database from space calculation). |
| 98 | + --rds Enable support for AWS RDS (implies --no-tempfiles and |
| 99 | + filters out the rdsadmin database from space |
| 100 | + calculation). |
98 | 101 | --output FILEPATH Store running queries as CSV. |
99 | | - --no-db-size Skip total size of DB. |
100 | | - --no-tempfiles Skip tempfile count and size. |
101 | | - --no-walreceiver Skip walreceiver checks. |
| 102 | + --db-size, --no-db-size |
| 103 | + Enable/disable total size of DB. |
| 104 | + --tempfiles, --no-tempfiles |
| 105 | + Enable/disable tempfile count and size. |
| 106 | + --walreceiver, --no-walreceiver |
| 107 | + Enable/disable walreceiver checks. |
102 | 108 | -w, --wrap-query Wrap query column instead of truncating. |
103 | 109 | --duration-mode DURATION_MODE |
104 | | - Duration mode. Values: 1-QUERY(default), 2-TRANSACTION, 3-BACKEND. |
| 110 | + Duration mode. Values: 1-QUERY(default), |
| 111 | + 2-TRANSACTION, 3-BACKEND. |
105 | 112 | --min-duration SECONDS |
106 | | - Don't display queries with smaller than specified duration (in seconds). |
107 | | - --filter FIELD:REGEX Filter activities with a (case insensitive) regular expression applied on selected fields. Known fields are: dbname. |
| 113 | + Don't display queries with smaller than specified |
| 114 | + duration (in seconds). |
| 115 | + --filter FIELD:REGEX Filter activities with a (case insensitive) regular |
| 116 | + expression applied on selected fields. Known fields |
| 117 | + are: dbname. |
108 | 118 | --debug-file DEBUG_FILE |
109 | 119 | Enable debug and write it to DEBUG_FILE. |
110 | 120 | --version show program's version number and exit. |
111 | 121 | --help Show this help message and exit. |
112 | 122 |
|
113 | 123 | Connection Options: |
114 | | - connection string A valid connection string to the database, e.g.: 'host=HOSTNAME port=PORT user=USER dbname=DBNAME'. |
| 124 | + connection string A valid connection string to the database, e.g.: |
| 125 | + 'host=HOSTNAME port=PORT user=USER dbname=DBNAME'. |
115 | 126 | -h HOSTNAME, --host HOSTNAME |
116 | 127 | Database server host or socket directory. |
117 | 128 | -p PORT, --port PORT Database server port. |
|
133 | 144 | --no-write Disable WRITE/s. |
134 | 145 | --no-time Disable TIME+. |
135 | 146 | --no-wait Disable W. |
136 | | - --no-app-name Disable App. |
| 147 | + --no-app-name Disable APP. |
137 | 148 |
|
138 | 149 | Header display options: |
139 | 150 | --no-inst-info Display instance information. |
|
142 | 153 |
|
143 | 154 | Other display options: |
144 | 155 | --hide-queries-in-logs |
145 | | - Disable log_min_duration_statements and log_min_duration_sample for pg_activity. |
| 156 | + Disable log_min_duration_statements and |
| 157 | + log_min_duration_sample for pg_activity. |
146 | 158 | --refresh REFRESH Refresh rate. Values: 0.5, 1, 2, 3, 4, 5 (default: 2). |
147 | 159 |
|
148 | 160 | ## Configuration |
|
0 commit comments