Re: doc review for v14
Michael Paquier <michael@paquier.xyz>
Hi Justin,
On Sun, Dec 27, 2020 at 02:26:05PM -0600, Justin Pryzby wrote:
> Thank you.
I have been looking at 0005, the patch dealing with the docs of the
replication stats, and have some comments.
<para>
Number of times transactions were spilled to disk while decoding changes
- from WAL for this slot. Transactions may get spilled repeatedly, and
- this counter gets incremented on every such invocation.
+ from WAL for this slot. A given transaction may be spilled multiple times, and
+ this counter is incremented each time.
</para></entry>
The original can be a bit hard to read, and I don't think that the new
formulation is an improvement. I actually find confusing that this
mixes in the same sentence that a transaction can be spilled multiple
times and increment this counter each time. What about splitting that
into two sentences? Here is an idea:
"This counter is incremented each time a transaction is spilled. The
same transaction may be spilled multiple times."
- Number of transactions spilled to disk after the memory used by
- logical decoding of changes from WAL for this slot exceeds
+ Number of transactions spilled to disk because the memory used by
+ logical decoding of changes from WAL for this slot exceeded
What does "logical decoding of changes from WAL" mean? Here is an
idea to clarify all that:
"Number of transactions spilled to disk once the memory used by
logical decoding to decode changes from WAL has exceeded
logical_decoding_work_mem."
Number of in-progress transactions streamed to the decoding output plugin
- after the memory used by logical decoding of changes from WAL for this
- slot exceeds <literal>logical_decoding_work_mem</literal>. Streaming only
+ because the memory used by logical decoding of changes from WAL for this
+ slot exceeded <literal>logical_decoding_work_mem</literal>. Streaming only
works with toplevel transactions (subtransactions can't be streamed
- independently), so the counter does not get incremented for subtransactions+ independently), so the counter is not incremented for subtransactions.
I have the same issue here with "by logical decoding of changes from
WAL". I'd say "after the memory used by logical decoding to decode
changes from WAL for this slot has exceeded logical_decoding_work_mem".
output plugin while decoding changes from WAL for this slot. Transactions
- may get streamed repeatedly, and this counter gets incremented on every
- such invocation.
+ may be streamed multiple times, and this counter is incremented each time.
I would split this stuff into two sentences:
"This counter is incremented each time a transaction is streamed. The
same transaction may be streamed multiple times.
Resets statistics to zero for a single replication slot, or for all
- replication slots in the cluster. The argument can be either the name
- of the slot to reset the stats or NULL. If the argument is NULL, all
- counters shown in the <structname>pg_stat_replication_slots</structname>
- view for all replication slots are reset.
+ replication slots in the cluster. The argument can be either NULL or the name
+ of a slot for which stats are to be reset. If the argument is NULL, all
+ counters in the <structname>pg_stat_replication_slots</structname>
+ view are reset for all replication slots.
Here also, I find rather confusing that this paragraph tells multiple
times that NULL resets the stats for all the replication slots. NULL
should use a <literal> markup, and it is cleaner to use "statistics"
rather than "stats" IMO. So I guess we could simplify things as
follows:
"Resets statistics of the replication slot defined by the argument. If
the argument is NULL, resets statistics for all the replication
slots."
--
Michael
Commits
-
Fix typos and grammar in comments and docs
- 7ef8b52cf079 14.0 landed
-
Fix typos and grammar in documentation and code comments
- 1cdbf7f0d256 9.6.22 landed
- a2b35b3117eb 10.17 landed
- 7f493570af92 11.12 landed
- d42978c67afa 12.7 landed
- dc6d285c2ef9 13.3 landed
- 609b0652af00 14.0 landed
-
Move pg_stat_statements query jumbling to core.
- 5fd9dfa5f50e 14.0 cited
-
doc: Improve description of data checksums
- bd1b8d0ef2eb 14.0 landed
-
Fix some typos, grammar and style in docs and comments
- c7a4fc3dd001 9.6.22 landed
- a8f26f6c8882 10.17 landed
- 70dc2385f9a2 11.12 landed
- 3b2af88788e1 12.7 landed
- 9de839fb4ab0 13.3 landed
- bcf2667bf62d 14.0 landed
-
doc: Improve wording of section for repslot statistics
- 2a5862f01364 14.0 landed
-
Implement support for bulk inserts in postgres_fdw
- b663a4136331 14.0 cited
-
psql \dX: list extended statistics objects
- ad600bba0422 14.0 cited
-
Add documentation chapter about checksums
- cf621d9d84db 14.0 cited
-
Simplify some comments in xml.c
- b49154b3b7a4 14.0 landed
-
Allow decoding at prepare time in ReorderBuffer.
- a271a1b50e9b 14.0 cited
-
Extend the output plugin API to allow decoding of prepared xacts.
- 0aa8a01d04c8 14.0 cited
-
doc: Improve some grammar and sentences
- d46eb10c06f4 9.5.25 landed
- b25c106df71f 9.6.21 landed
- a8c68e7796d4 10.16 landed
- e06713ab6eac 11.11 landed
- 9ad2689889ad 12.6 landed
- 5253906fac5a 13.2 landed
-
doc: Improve description of min_dynamic_shared_memory
- 1b3433e25f81 14.0 landed
-
Fix typos and grammar in docs and comments
- 90fbf7c57df6 14.0 landed
-
Multirange datatypes
- 6df7a9698bb0 14.0 cited
-
Move per-agg and per-trans duplicate finding to the planner.
- 0a2bc5d61e71 14.0 cited
-
Allow pg_rewind to use a standby server as the source system.
- 9c4f5192f69e 14.0 cited
-
snapshot scalability: cache snapshots using a xact completion counter.
- 623a9ba79bbd 14.0 cited
-
Add tests for tuplesort.c.
- 4a252996d5fd 13.0 cited
-
Document piecemeal construction of partitioned indexes
- 5efd604ec0a3 12.0 cited
-
Report progress of CREATE INDEX operations
- ab0dfc961b6a 12.0 cited
-
Fix misc typos, mostly in comments.
- 6b387179baab 12.0 cited
-
Improve pageinspect module
- d6061f83a166 9.6.0 cited
-
Revamp the WAL record format.
- 2c03216d8311 9.5.0 cited
-
Fix assorted bugs in CREATE/DROP INDEX CONCURRENTLY.
- 3c84046490be 9.3.0 cited