Commit 3588941
Address review_6.md issue #9: drop speculative consumer naming in docs/comments
review_6.md issue #9 flagged that documentation comments
over-reference "future ASH/AWR/10046-style background workers"
as justification for the cross-backend trace surface. On
-hackers this reads as speculative -- naming hypothetical
consumers to motivate present code. PG style prefers factual
statements about what the code does, with neutral framing for
consumers ("any extension that reads via the snapshot pattern").
The framing is also now doubly stale: since review_6 was
written we landed pg_get_wait_event_trace (review_6.md issue
#1) as the in-tree cross-backend consumer. The "future" tense
is wrong as well as speculative.
Sweep through wait_event_timing.h, wait_event_timing.c, and
monitoring.sgml. In each speculative reference replace the
"future ASH/AWR/10046-style background workers" phrasing with
neutral framing that:
* names the in-tree consumer (pg_get_wait_event_trace) where
that is what callers should use today,
* refers to "extensions following the snapshot pattern
documented on WaitEventTraceControl" for the
direct-shared-memory case,
* drops the speculative consumer enumeration entirely.
References to "10046-style trace" as a descriptive label for
the technique (e.g. "Per-session wait event trace ring buffer
(10046-style)" on WaitEventTraceState) are retained -- that is
a recognised term for the per-session-event-trace
profiling style, used here as a descriptor of the design, not
as a forward-looking promise about a particular consumer.
Files touched:
* doc/src/sgml/monitoring.sgml: pg_backend_wait_event_trace
cross-backend-tools paragraph, pg_get_wait_event_trace
description, and pg_stat_clear_orphaned_wait_event_rings
description.
* src/include/utils/wait_event_timing.h: slot-lifecycle
comment block (3 spots).
* src/backend/utils/activity/wait_event_timing.c:
wait_event_trace_before_shmem_exit doc, the
pg_backend_wait_event_trace SRF doc, the
pg_get_wait_event_trace SRF doc, and the
pg_stat_clear_orphaned_wait_event_rings doc.
No code change. Pure documentation rewrite.
Builds clean in both --enable-wait-event-timing and stub
configurations. Main regress (249 tests) and
test_wait_event_stress TAP (15 subtests) pass on the timing
build; main regress (249 tests) passes on the stub build.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent d1553b9 commit 3588941
3 files changed
Lines changed: 55 additions & 41 deletions
File tree
- doc/src/sgml
- src
- backend/utils/activity
- include/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4128 | 4128 | | |
4129 | 4129 | | |
4130 | 4130 | | |
4131 | | - | |
4132 | | - | |
4133 | | - | |
4134 | | - | |
4135 | | - | |
4136 | | - | |
| 4131 | + | |
| 4132 | + | |
| 4133 | + | |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
4137 | 4139 | | |
4138 | 4140 | | |
4139 | | - | |
4140 | | - | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
4141 | 4144 | | |
4142 | 4145 | | |
4143 | 4146 | | |
| |||
4168 | 4171 | | |
4169 | 4172 | | |
4170 | 4173 | | |
4171 | | - | |
4172 | | - | |
4173 | | - | |
| 4174 | + | |
| 4175 | + | |
| 4176 | + | |
4174 | 4177 | | |
4175 | 4178 | | |
4176 | 4179 | | |
| |||
6405 | 6408 | | |
6406 | 6409 | | |
6407 | 6410 | | |
6408 | | - | |
6409 | | - | |
6410 | | - | |
6411 | | - | |
| 6411 | + | |
| 6412 | + | |
| 6413 | + | |
| 6414 | + | |
6412 | 6415 | | |
6413 | 6416 | | |
6414 | 6417 | | |
| |||
6524 | 6527 | | |
6525 | 6528 | | |
6526 | 6529 | | |
6527 | | - | |
6528 | | - | |
| 6530 | + | |
| 6531 | + | |
| 6532 | + | |
| 6533 | + | |
6529 | 6534 | | |
6530 | 6535 | | |
6531 | 6536 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1111 | 1111 | | |
1112 | 1112 | | |
1113 | 1113 | | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
1120 | 1122 | | |
1121 | 1123 | | |
1122 | 1124 | | |
| |||
2215 | 2217 | | |
2216 | 2218 | | |
2217 | 2219 | | |
2218 | | - | |
2219 | | - | |
2220 | | - | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
2221 | 2225 | | |
2222 | 2226 | | |
2223 | 2227 | | |
| |||
2738 | 2742 | | |
2739 | 2743 | | |
2740 | 2744 | | |
2741 | | - | |
2742 | | - | |
| 2745 | + | |
| 2746 | + | |
2743 | 2747 | | |
2744 | 2748 | | |
2745 | 2749 | | |
| |||
3075 | 3079 | | |
3076 | 3080 | | |
3077 | 3081 | | |
3078 | | - | |
3079 | | - | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
3080 | 3086 | | |
3081 | 3087 | | |
3082 | 3088 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
365 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
366 | 368 | | |
367 | 369 | | |
368 | 370 | | |
| |||
414 | 416 | | |
415 | 417 | | |
416 | 418 | | |
417 | | - | |
418 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
419 | 422 | | |
420 | 423 | | |
421 | 424 | | |
| |||
465 | 468 | | |
466 | 469 | | |
467 | 470 | | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
472 | 475 | | |
473 | 476 | | |
474 | 477 | | |
| |||
495 | 498 | | |
496 | 499 | | |
497 | 500 | | |
498 | | - | |
499 | | - | |
500 | | - | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
501 | 504 | | |
502 | 505 | | |
503 | 506 | | |
| |||
0 commit comments