Skip to content

pg_stat_statements_info: Add gc_count and query_file_size #9

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lfittl
Copy link
Owner

@lfittl lfittl commented Nov 21, 2023

This surfaces two internal fields from pg_stat_statements in the pg_stat_statements_info view to help with debugging.

"gc_count" helps understand when there are significant numbers of deallocations causing I/O overhead due to query text file rewrites.

"query_file_size" can be used to determine the query text file size without actually reading the file, e.g. for use in monitoring queries, or when deciding how often to get pg_stat_statements data with query texts.

This surfaces two internal fields from pg_stat_statements in
the pg_stat_statements_info view to help with debugging.

"gc_count" helps understand when there are significant numbers of
deallocations causing I/O overhead due to query text file rewrites.

"query_file_size" can be used to determine the query text file size
without actually reading the file, e.g. for use in monitoring queries, or
when deciding how often to get pg_stat_statements data with query texts.
@lfittl lfittl force-pushed the pgss-additional-info branch from ed818f1 to e327cf7 Compare December 31, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant