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/5493~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/5493
Choose a head ref
  • 2 commits
  • 8 files changed
  • 2 contributors

Commits on Apr 8, 2025

  1. Add pg_buffercache_evict_{relation,all} functions

    In addition to the added functions, the pg_buffercache_evict() function now
    shows whether the buffer was flushed.
    
    pg_buffercache_evict_relation(): Evicts all shared buffers in a
    relation at once.
    pg_buffercache_evict_all(): Evicts all shared buffers at once.
    
    Both functions provide mechanism to evict multiple shared buffers at
    once. They are designed to address the inefficiency of repeatedly calling
    pg_buffercache_evict() for each individual buffer, which can be time-consuming
    when dealing with large shared buffer pools. (e.g., ~477ms vs. ~2576ms for
    16GB of fully populated shared buffers).
    
    These functions are intended for developer testing and debugging
    purposes and are available to superusers only.
    
    Minimal tests for the new functions are included. Also, there was no test for
    pg_buffercache_evict(), test for this added too.
    
    No new extension version is needed, as it was already increased this release
    by ba2a3c2.
    
    Author: Nazir Bilal Yavuz <[email protected]>
    Reviewed-by: Andres Freund <[email protected]>
    Reviewed-by: Aidar Imamov <[email protected]>
    Reviewed-by: Joseph Koshakow <[email protected]>
    Discussion: https://postgr.es/m/CAN55FZ0h_YoSqqutxV6DES1RW8ig6wcA8CR9rJk358YRMxZFmw%40mail.gmail.com
    anarazel authored and Commitfest Bot committed Apr 8, 2025
    Configuration menu
    Copy the full SHA
    ab11b10 View commit details
    Browse the repository at this point in the history
  2. [CF 5493] v8 - Add pg_buffercache_evict_all() and pg_buffercache_mark…

    …_dirty[_all]() functions
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5493
    
    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/itcll7zmkvmuyqkcicztyk3pvjr5fkxsadd6hr4dpcrbtgcdox@3mk7hjiecyvr
    Author(s): Nazir Bilal Yavuz
    Commitfest Bot committed Apr 8, 2025
    Configuration menu
    Copy the full SHA
    1d7e280 View commit details
    Browse the repository at this point in the history
Loading