Skip to content

Commit

Permalink
Enhanced the pg_read_all_stats missing grant message
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-yb committed Dec 11, 2024
1 parent be98ce8 commit 7c50529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yb-voyager/src/srcdb/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c50529

Please sign in to comment.