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

PMM-13448 Support PG17 to provide pre PG17 metrics support. #281

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

BupycHuk
Copy link
Member

No description provided.

@BupycHuk BupycHuk requested a review from a team as a code owner November 26, 2024 10:43
@@ -52,7 +52,7 @@ func TestPGStatBGWriterCollector(t *testing.T) {

rows := sqlmock.NewRows(columns).
AddRow(354, 4945, 289097744, 1242257, int64(3275602074), 89320867, 450139, 2034563757, 0, int64(2725688749), srT)
mock.ExpectQuery(sanitizeQuery(statBGWriterQuery)).WillReturnRows(rows)
mock.ExpectQuery(sanitizeQuery(statBGWriterQueryPrePG17)).WillReturnRows(rows)
Copy link
Member

Choose a reason for hiding this comment

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

Should we cover this change with unit tests for PG >= 17 as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

it's a temporary solution until we get proper solution from upstream

@BupycHuk BupycHuk requested review from ademidoff and idoqo November 27, 2024 09:37
@BupycHuk BupycHuk merged commit 5f34fc4 into main Nov 27, 2024
6 checks passed
@BupycHuk BupycHuk deleted the PMM-13448-PG17-compatibility-metrics branch November 27, 2024 10:46
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.

3 participants