Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/5825~1
Choose a base ref
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/5825
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Aug 6, 2025

  1. pg_stat_statements.c: cancelable qtext_load_file

    In the case of a large PGSS_TEXT_FILE, the work time of the qtext_load_file
    function will be quite long, and the query to the pg_stat_statements table
    will not be cancellable, as there is no CHECK_FOR_INTERRUPT in the function.
    
    Also, the amount of bytes read can reach 1 GB, which leads to a slow read
    system call that does not allow cancellation of the query. Testing the speed
    of sequential read using fio with different block sizes shows that there is
    no significant difference between 16 MB blocks and 1 GB blocks.
    
    Therefore, this patch changes the maximum read value from 1 GB to 16 MB and
    adds INTERRUPTS_PENDING_CONDITION() check in the read loop of qtext_load_file to make it cancellable.
    For now, only statement execution is cancellable (fail_on_interrupt is true only for calls from pg_stat_statements_internal)
    
    Signed-off-by: rkhapov <[email protected]>
    rkhapov authored and Commitfest Bot committed Aug 6, 2025
    Configuration menu
    Copy the full SHA
    42e1649 View commit details
    Browse the repository at this point in the history
  2. [CF 5825] v2 - Cancel problems of query to pg_stat_statements

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5825
    
    The branch will be overwritten each time a new patch version is posted to
    the thread, and also periodically to check for bitrot caused by changes
    on the master branch.
    
    Patch(es): https://www.postgresql.org/message-id/[email protected]
    Author(s): Roman Khapov
    Commitfest Bot committed Aug 6, 2025
    Configuration menu
    Copy the full SHA
    111c9d9 View commit details
    Browse the repository at this point in the history
Loading