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

Commits on Apr 30, 2025

  1. Add pg_buffercache_mark_dirty[_all]() functions for testing

    This commit introduces two new functions for marking shared buffers as
    dirty:
    
    pg_buffercache_mark_dirty(): Marks a specific shared buffer as dirty.
    pg_buffercache_mark_dirty_all(): Marks all shared buffers as dirty in a
    single operation.
    
    The pg_buffercache_mark_dirty_all() function provides an efficient
    way to dirty the entire buffer pool (e.g., ~550ms vs. ~70ms for 16GB of
    shared buffers), complementing pg_buffercache_mark_dirty() for more
    granular control.
    
    These functions are intended for developer testing and debugging
    scenarios, enabling users to simulate various buffer pool states and
    test write-back behavior. Both functions are superuser-only.
    
    Author: Nazir Bilal Yavuz <byavuz81@gmail.com>
    Reviewed-by: Andres Freund <andres@anarazel.de>
    Reviewed-by: Aidar Imamov <a.imamov@postgrespro.ru>
    Reviewed-by: Joseph Koshakow <koshy44@gmail.com>
    Discussion: https://postgr.es/m/CAN55FZ0h_YoSqqutxV6DES1RW8ig6wcA8CR9rJk358YRMxZFmw%40mail.gmail.com
    nbyavuz authored and Commitfest Bot committed Apr 30, 2025
    Configuration menu
    Copy the full SHA
    0b4b6d0 View commit details
    Browse the repository at this point in the history
  2. [CF 5694] v7 - Add pg_buffercache_mark_dirty[_all]() functions to the…

    … pg_buffercache
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5694
    
    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/CAN55FZ3ddSvxVDbBoNpc2JCCs0zf6g2X--zyHkr3xgUsHU51kA@mail.gmail.com
    Author(s): Nazir Bilal Yavuz
    Commitfest Bot committed Apr 30, 2025
    Configuration menu
    Copy the full SHA
    ef5b784 View commit details
    Browse the repository at this point in the history
Loading