Hi Tatsuo,
Thank you for the thorough review and the fix to the tests!. Here's the updated patch addressing all your comments.
re - replication_delay_source_cmd requirement
Good catch — the feature now also works when `delay_threshold_by_time > 0`. I've added the TTL update call to `check_replication_time_lag()` (the pg_stat_replication path), not just `check_replication_time_lag_with_cmd()`. The docs are updated to reflect that either `replication_delay_source_cmd` or `delay_threshold_by_time` can provide the time-based delay.
re - Documentation compile error
Fixed — the xref was pointing to `runtime-config-track-table-mutation` but the actual section ID is `runtime-config-table-mutation-map`.
Thanks again and looking forward to hearing back from you.