File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ Next, the script uses the following library to connect to the database and requi
1818
1919The following instructions use the ` monitor_main.py ` file but all instructions can be directly given to the ` Monitor ` class in the same order
2020
21- The script uses the following arguments :
22- - ` -h ` to display help ( standalone argument )
23-
24- All other arguments will require the authentication string<br />
25- The authentication string is just as described in the ` psycopg2 ` documentation
21+ The script uses the following arguments : <br />
22+ authentication string + display instruction(s) + quantity<br />
23+ or :<br />
24+ authentication string + query id
2625
26+ The authentication string is just as described in the ` psycopg2 ` documentation<br />
2727Example of authentication string :<br />
2828` "dbname=test user=user password=my-password host=127.0.0.1 port=5432" `
2929
@@ -46,6 +46,8 @@ The ids are displayed using any of the other instructions
4646
4747` quantity ` is a positive integer used for the maximum displayed queries
4848
49+ ` query id ` is one of the ids displayed by one of the other instructions. It is used to see the entire, indented and non truncated query
50+
4951** Note** : the previously shown arguments arguments can be used simultaneously. Therefor the following instruction is valid :<br />
5052` [authentification string] mostUsed longestTimeOnAverage mostRowsReturnedAccumulated 10 ` <br />
5153It will display just the queries for ` mostUsed ` , ` longestTimeOnAverage ` and ` mostRowsReturnedAccumulated ` one after an other
You can’t perform that action at this time.
0 commit comments