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

Exclude unused pages from buffer cache monitoring #636

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

seanlinsley
Copy link
Member

Followup to #633. As mentioned in the documentation:

There is one row for each buffer in the shared cache. Unused buffers are shown with all fields null except bufferid. Shared system catalogs are shown as belonging to database zero.

The null values cause a type conversion error:

Scan error on column index 0, name "reldatabase": converting NULL to uint64 is unsupported

We might want to track them in the future, but for now this PR excludes them to work around the issue.

@seanlinsley seanlinsley requested a review from a team November 19, 2024 21:41
@seanlinsley seanlinsley merged commit 451d13f into main Nov 19, 2024
9 checks passed
@seanlinsley seanlinsley deleted the buffer-cache-fix branch November 19, 2024 22:49
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