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 Aug 9, 2025

  1. Add pg_buffercache_mark_dirty{,_relation,_all}() functions

    This commit introduces three new functions for marking shared buffers as
    dirty:
    
    pg_buffercache_mark_dirty(): Marks a specific shared buffer as dirty.
    pg_buffercache_mark_dirt_relation(): Marks all shared buffers as dirty
    in a relation at once.
    pg_buffercache_mark_dirty_all(): Marks all shared buffers as dirty at
    once.
    
    The pg_buffercache_mark_dirty_relation() and
    pg_buffercache_mark_dirty_all() functions provide mechanism to mark
    multiple shared buffers as dirty at once. They are designed to address
    the inefficiency of repeatedly calling
    pg_buffercache_mark_dirty() for each individual buffer, which can be
    time-consuming when dealing with with large shared buffers pool. (e.g.,
    ~550ms vs. ~70ms 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.
    
    Author: Nazir Bilal Yavuz <[email protected]>
    Reviewed-by: Aidar Imamov <[email protected]>
    Reviewed-by: Andres Freund <[email protected]>
    Reviewed-by: Amit Kapila <[email protected]>
    Reviewed-by: Joseph Koshakow <[email protected]>
    Reviewed-by: Xuneng Zhou <[email protected]>
    Discussion: https://postgr.es/m/CAN55FZ0h_YoSqqutxV6DES1RW8ig6wcA8CR9rJk358YRMxZFmw%40mail.gmail.com
    nbyavuz authored and Commitfest Bot committed Aug 9, 2025
    Configuration menu
    Copy the full SHA
    137605b View commit details
    Browse the repository at this point in the history
  2. [CF 5694] v8 - 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/CAN55FZ32bsRUrcLoTWCApdmwaXrFVTovH07Pke-VCn=hBmtgzA@mail.gmail.com
    Author(s): Nazir Bilal Yavuz
    Commitfest Bot committed Aug 9, 2025
    Configuration menu
    Copy the full SHA
    706ef8d View commit details
    Browse the repository at this point in the history
Loading