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

Commits on Dec 11, 2025

  1. Report output plugin statistics in pg_stat_replication_slots

    As of now pg_stat_replication_slots reports statistics about the reorder
    buffer, but it does not report output statistics like the amount of data
    filtered by the output plugin, amount of data sent downstream or the
    number of transactions sent downstream. This statistics is useful when
    investigating issues related to a slow downstream.
    
    This commit adds following fields to pg_stat_replication_slots
    - filtered_bytes is the amount of changes filtered out by the
      output plugin
    - sent_txns is the amount of transactions sent downstream by the
      output plugin
    - sent_bytes is the amount of data sent downstream by the output
      plugin.
    
    Filtered bytes are reported next to total_bytes to keep these two
    closely related fields together.
    
    Though these counts are stored and maintained by the core, they require
    the output plugin to return correct values to the relevant callbacks.
    This has been added as note in the documentation. In order to aid
    debugging descripancies in these counter, name of the output plugin is
    added to the view for an easy reference.
    
    total_bytes and total_txns are the only fields remaining unqualified -
    they do not convey what those bytes and txns are. Hence rename them
    total_wal_bytes and total_wal_txns respectively to indicate that those
    counts come from WAL stream.
    
    Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
    Reviewed-by: Shveta Malik <shveta.malik@gmail.com>
    Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
    Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
    Reviewed-by: Ashutosh Sharma <ashu.coek88@gmail.com>
    Discussion: https://www.postgresql.org/message-id/CAExHW5s6KntzUyUoMbKR5dgwRmdV2Ay_2+AnTgYGAzo=Qv61wA@mail.gmail.com
    ashutosh-bapat authored and Commitfest Bot committed Dec 11, 2025
    Configuration menu
    Copy the full SHA
    5d7bc53 View commit details
    Browse the repository at this point in the history
  2. [CF 5877] v20251211 - Report bytes and transactions actually sent dow…

    …ntream
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5877
    
    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/CAExHW5v-WNfpi4+kE7OA0J5PfPvAd9u=ErhRFXR4xu7OAxFVow@mail.gmail.com
    Author(s): Ashutosh Bapat
    Commitfest Bot committed Dec 11, 2025
    Configuration menu
    Copy the full SHA
    1f4fce3 View commit details
    Browse the repository at this point in the history
Loading