Thanks to visit codestin.com
Credit goes to github.com

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
  • 3 commits
  • 23 files changed
  • 2 contributors

Commits on Jun 10, 2026

  1. Report downstream sent bytes in pg_stat_replication_slots

    pg_stat_replication_slots currently tracks bytes added to the reorder
    buffer, but it does not track bytes sent to downstream consumers.
    Add sent_bytes to expose that metric and help diagnose replication
    throughput issues caused by a slow or stalled downstream consumer.
    
    Author: Ashutosh Bapat <[email protected]>
    Author: Ashutosh Sharma <[email protected]>
    Reviewed-by: Shveta Malik <[email protected]>
    Reviewed-by: Bertrand Drouvot <[email protected]>
    Reviewed-by: Amit Kapila <[email protected]>
    Reviewed-by: Ashutosh Sharma <[email protected]>
    Reviewed-by: Andres Freund <[email protected]>
    Discussion: https://www.postgresql.org/message-id/CAExHW5s6KntzUyUoMbKR5dgwRmdV2Ay_2+AnTgYGAzo=Qv61wA@mail.gmail.com
    ashucoek authored and Commitfest Bot committed Jun 10, 2026
    Configuration menu
    Copy the full SHA
    5677274 View commit details
    Browse the repository at this point in the history
  2. 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, 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
    
    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.
    
    Author: Ashutosh Bapat <[email protected]>
    Reviewed-by: Shveta Malik <[email protected]>
    Reviewed-by: Bertrand Drouvot <[email protected]>
    Reviewed-by: Amit Kapila <[email protected]>
    Reviewed-by: Ashutosh Sharma <[email protected]>
    Reviewed-by: Andres Freund <[email protected]>
    Discussion: https://www.postgresql.org/message-id/CAExHW5s6KntzUyUoMbKR5dgwRmdV2Ay_2+AnTgYGAzo=Qv61wA@mail.gmail.com
    ashucoek authored and Commitfest Bot committed Jun 10, 2026
    Configuration menu
    Copy the full SHA
    200bf33 View commit details
    Browse the repository at this point in the history
  3. [CF 5877] v20260316 - 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/CAE9k0PmBdxB_bpWAT9V9TqkKzRCbPTOBTU3f5OtRVhZ64VKFhw@mail.gmail.com
    Author(s): Ashutosh Bapat
    Commitfest Bot committed Jun 10, 2026
    Configuration menu
    Copy the full SHA
    a59323b View commit details
    Browse the repository at this point in the history
Loading