From 7c50529cf596909c330bb9fd2895335337fc74f3 Mon Sep 17 00:00:00 2001 From: shubham-yb Date: Wed, 11 Dec 2024 05:51:09 +0000 Subject: [PATCH] Enhanced the pg_read_all_stats missing grant message --- yb-voyager/src/srcdb/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yb-voyager/src/srcdb/postgres.go b/yb-voyager/src/srcdb/postgres.go index 9f0c328e3..97f2c9986 100644 --- a/yb-voyager/src/srcdb/postgres.go +++ b/yb-voyager/src/srcdb/postgres.go @@ -1208,7 +1208,7 @@ func (pg *PostgreSQL) checkPgStatStatementsSetup() (string, error) { } if !hasReadAllStats { - return "User doesn't have permissions to read pg_stat_statements view, required for detecting Unsupported Query Constructs", nil + return "\n" + color.RedString("Missing Permission:") + " User doesn't have the `pg_read_all_stats` grant, required for detecting Unsupported Query Constructs", nil } // To access "shared_preload_libraries" must be superuser or a member of pg_read_all_settings