You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/cli_flag.go
+11-9Lines changed: 11 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -14,20 +14,22 @@ var (
14
14
)
15
15
16
16
typeCliArgsstruct {
17
-
PgDatastring
18
-
Databasestring
19
-
ConnectStringstring
20
-
Relations []string
21
-
PageThresholdint
22
-
Limitint
23
-
24
-
OutputOptionsOutputOptions
17
+
PgDatastring
18
+
Databasestring
19
+
ConnectStringstring
20
+
Relations []string
21
+
PageThresholdint
22
+
CachedPageThresholdint
23
+
Limitint
24
+
25
+
OutputOptions
25
26
}
26
27
27
28
funcinit() {
28
29
flag.StringVar(&cliArgs.PgData, "pgData", "", "Location of pgdata, uses PGDATA env var if not defined")
29
30
flag.StringVar(&cliArgs.ConnectString, "connect_str", "", "Connection string to PostgreSQL")
30
-
flag.IntVar(&cliArgs.PageThreshold, "page_threshold", 10, "Exclude relations with less pages than the threshold")
31
+
flag.IntVar(&cliArgs.PageThreshold, "page_threshold", 0, "Exclude relations pages under the threshold. -1 to display everything")
32
+
flag.IntVar(&cliArgs.CachedPageThreshold, "cached_page_threshold", 0, "Exclude relations with cached pages under the threshold. -1 to display everything")
31
33
flag.StringVar(&relationsFlag, "relations", "", "Filter on a specific relations (separated with commas)")
0 commit comments