Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced the pg_read_all_stats missing grant message #2063

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

shubham-yb
Copy link
Contributor

@shubham-yb shubham-yb commented Dec 11, 2024

Describe the changes in this pull request

Fixes: #2056

Describe if there are any user-facing changes

Changed a user facing message to be more specific

Screenshot:

image

How was this pull request tested?

Manual verification

Does your PR have changes that can cause upgrade issues?

Component Breaking changes?
MetaDB No
Name registry json No
Data File Descriptor Json No
Export Snapshot Status Json No
Import Data State No
Export Status Json No
Data .sql files of tables No
Export and import data queue No
Schema Dump No
AssessmentDB No
Sizing DB No
Migration Assessment Report Json No
Callhome Json No
YugabyteD Tables No
TargetDB Metadata Tables No

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you post a screenshot of the overall output on CLI? Also when combined with other missing permissions?

Copy link
Collaborator

@makalaaneesh makalaaneesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shubham-yb shubham-yb merged commit 1f69c1c into main Dec 18, 2024
33 of 34 checks passed
@shubham-yb shubham-yb deleted the shubham/fix-pgss-message branch December 18, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants