Skip to content

pg_stat_statements: Allow interrupts whilst reading query text file #10

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

When the query text file gets very large (hundreds of megabytes, or more) and when limited I/O capacity is available, reading it can take many seconds, or even minutes.

In such situations we want statement timeouts and query cancellations to allow canceling the read half-way through. To support this, check for interrupts, and read 100MB at a time, instead of 1GB as before.

When the query text file gets very large (hundreds of megabytes, or more)
and when limited I/O capacity is available, reading it can take many
seconds, or even minutes.

In such situations we want statement timeouts and query cancellations
to allow canceling the read half-way through. To support this, check
for interrupts, and read 100MB at a time, instead of 1GB as before.
@lfittl lfittl force-pushed the pgss-interruptible-query-text-file-reads branch from b6ddb08 to e2ec1e6 Compare December 31, 2024 23:22
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