Re: Replication slot stats misgivings
Masahiko Sawada <sawada.mshk@gmail.com>
From: Masahiko Sawada <sawada.mshk@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: vignesh C <vignesh21@gmail.com>, Andres Freund <andres@anarazel.de>, pgsql-hackers <pgsql-hackers@postgresql.org>, Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Date: 2021-05-06T03:43:32Z
Lists: pgsql-hackers
Attachments
- fix_doc.patch (application/octet-stream) patch
On Mon, May 3, 2021 at 9:18 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote: > > On Mon, May 3, 2021 at 2:27 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > > > Apart from this, I think you > > have suggested somewhere in this thread to slightly update the > > description of stream_bytes. I would like to update the description of > > stream_bytes and total_bytes as below: > > > > stream_bytes > > Amount of transaction data decoded for streaming in-progress > > transactions to the decoding output plugin while decoding changes from > > WAL for this slot. This and other streaming counters for this slot can > > be used to tune logical_decoding_work_mem. > > > > total_bytes > > Amount of transaction data decoded for sending transactions to the > > decoding output plugin while decoding changes from WAL for this slot. > > Note that this includes data that is streamed and/or spilled. > > > > This update considers two points: > > a. we don't send this data across the network because plugin might > > decide to filter this data, ex. based on publications. > > b. not all of the decoded changes are sent to plugin, consider > > REORDER_BUFFER_CHANGE_INTERNAL_COMMAND_ID, > > REORDER_BUFFER_CHANGE_INTERNAL_SNAPSHOT, etc. > > Looks good to me. Attached the doc update patch. Regards, -- Masahiko Sawada EDB: https://www.enterprisedb.com/
Commits
-
Doc: Update logical decoding stats information.
- 0c6b92d9c6fb 14.0 landed
-
Fix tests for replication slots stats.
- fc69509131c3 14.0 landed
-
Update replication statistics after every stream/spill.
- 592f00f8dec6 14.0 landed
-
Fix the computation of slot stats for 'total_bytes'.
- 205f466282be 14.0 landed
-
Another try to fix the test case added by commit f5fc2f5b23.
- 51ef9173030c 14.0 landed
-
Use HTAB for replication slot statistics.
- 3fa17d37716f 14.0 landed
-
Fix test case added by commit f5fc2f5b23.
- c64dcc7fee5f 14.0 landed
-
Add information of total data processed to replication slot stats.
- f5fc2f5b23d1 14.0 landed
-
Use NameData datatype for slotname in stats.
- cca57c1d9bf7 14.0 landed