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

Params: PGSCV_COLLECT_TOP_TABLE, PGSCV_COLLECT_TOP_INDEX, PGSCV_COLLECT_TOP_QUERY #31

Merged
merged 6 commits into from
Aug 8, 2024

Conversation

dbulashev
Copy link

No description provided.

@CHERTS
Copy link
Owner

CHERTS commented Jul 29, 2024

@dbulashev Hi, this is a good functionality, but the tests are broken

internal/collector/postgres_statements_test.go:175:73: not enough arguments in call to selectStatementsQuery

need to fix them and add tests for the new functionality.

Thanks!

@CHERTS
Copy link
Owner

CHERTS commented Jul 29, 2024

I also think it is necessary to keep the compact style of SQL queries in the variables userIndexesQuery, userIndexesQueryTopK and others that have been changed and new ones added.

Thanks!

nullif(sum(coalesce(size_bytes,0)),0),
nullif(sum(coalesce(reltuples,0)),0)
from stat
where not visible and false
Copy link
Author

Choose a reason for hiding this comment

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

and false - forgot debugging predicate

@CHERTS CHERTS merged commit 2d625f5 into CHERTS:master Aug 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants