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
Add "--generate-helper-explain-analyze-role" argument for helper SQL
This optionally generates the SQL for the pganalyze.explain_analyze helper
as part of the "--generate--helper-sql" command. The argument takes the
role that the helper function should be owned by as a value.
Note that the role creation, as well as any GRANT statements for the role
must be taken care of separately.
Copy file name to clipboardExpand all lines: main.go
+25-22Lines changed: 25 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@ func main() {
50
50
vartestExplainbool
51
51
vartestSectionstring
52
52
vargenerateHelperSqlstring
53
+
vargenerateHelperExplainAnalyzeRolestring
53
54
varforceStateUpdatebool
54
55
varconfigFilenamestring
55
56
varstateFilenamestring
@@ -75,6 +76,7 @@ func main() {
75
76
flag.StringVar(&testSection, "test-section", "", "Tests a particular section of the config file, i.e. a specific server, and ignores all other config sections")
76
77
flag.StringVar(&generateHelperSql, "generate-stats-helper-sql", "", "Deprecated alias for --generate-helper-sql")
77
78
flag.StringVar(&generateHelperSql, "generate-helper-sql", "", "Generates a SQL script for the given server (name of section in the config file, or \"default\" for env variables), that can be run with \"psql -f\" for installing the collector helpers on all configured databases")
79
+
flag.StringVar(&generateHelperExplainAnalyzeRole, "generate-helper-explain-analyze-role", "", "Includes pganalyze.explain_analyze helper in generated helper SQL, and sets owner role of helper function")
78
80
flag.BoolVar(&reloadRun, "reload", false, "Reloads the collector daemon that's running on the host")
79
81
flag.BoolVar(&noReload, "no-reload", false, "Disables automatic config reloading during a test run")
80
82
flag.BoolVarP(&logger.Verbose, "verbose", "v", false, "Outputs additional debugging information, use this if you're encountering errors or other problems")
0 commit comments