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

Commits on Apr 8, 2025

  1. Add function to get memory context stats for processes

    This adds a function for retrieving memory context statistics
    and information from backends as well as auxiliary processes.
    
    When calling the function it sends a signal to the specified
    process to submit statistics regarding its memory contexts
    into dynamic shared memory.  Each memory context is returned
    in detail, followed by a cumulative total in case the number
    of contexts exceed the max allocated amount of shared memory.
    Each process is limited to use at most 1Mb memory for this.
    
    A summary can also be explicitly requested by the user, this
    will return the TopMemoryContext and a cumulative total of
    all lower contexts.
    
    In order to not block on busy processes the caller specifies
    the number of seconds during which to retry before timing out.
    In the case where no statistics are published within the set
    timeout,  the last known statistics are returned, or NULL if
    no previously published statistics exist.  This allows dash-
    board type usages to continually publish data even if the
    target process is temporarily congested.  Context records
    contain a timestamp to indicate when they were submitted.
    
    Author: Rahila Syed <[email protected]>
    Reviewed-by: Daniel Gustafsson <[email protected]>
    Reviewed-by: Andres Freund <[email protected]>
    Reviewed-by: Tomas Vondra <[email protected]>
    Reviewed-by: Atsushi Torikoshi <[email protected]>
    Reviewed-by: Fujii Masao <[email protected]>
    Reviewed-by: Alexander Korotkov <[email protected]>
    Discussion: https://postgr.es/m/CAH2L28v8mc9HDt8QoSJ8TRmKau_8FM_HKS41NeO9-6ZAkuZKXw@mail.gmail.com
    Rahila authored and Commitfest Bot committed Apr 8, 2025
    Configuration menu
    Copy the full SHA
    7d03af3 View commit details
    Browse the repository at this point in the history
  2. [CF 5355] v28 - Enhance memory context statistics reporting for all P…

    …ostgreSQL processes.
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5355
    
    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/CAH2L28tp8RMa0CrCgdCJw20vFzeGQMuHkXAoPgYC5JZuXY8_+g@mail.gmail.com
    Author(s): Rahila Syed
    Commitfest Bot committed Apr 8, 2025
    Configuration menu
    Copy the full SHA
    564a5d2 View commit details
    Browse the repository at this point in the history
Loading