LCOV - differential code coverage report
Current view: top level - src/backend/replication/logical - worker.c (source / functions) Coverage Total Hit UNC LBC UIC UBC GBC GIC GNC CBC ECB DUB DCB
Current: 0e5ff9b9b45a657aea12440478dc002e9b01f138 vs 0123ce131fca454009439dfa3b2266d1d40737d7 Lines: 92.5 % 1886 1745 40 101 6 269 1470 1 2 61
Current Date: 2026-03-14 14:10:32 -0400 Functions: 100.0 % 98 98 54 44 4
Baseline: lcov-20260315-024220-baseline Branches: 67.4 % 1109 747 69 3 4 286 9 1 138 599 11 25
Baseline Date: 2026-03-14 15:27:56 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 91.7 % 24 22 2 22
(30,360] days: 87.8 % 312 274 38 247 27
(360..) days: 93.5 % 1550 1449 101 6 1443 1
Function coverage date bins:
(7,30] days: 100.0 % 2 2 2
(30,360] days: 100.0 % 18 18 18
(360..) days: 100.0 % 78 78 34 44
Branch coverage date bins:
(7,30] days: 37.5 % 8 3 5 3
(30,360] days: 68.8 % 205 141 64 135 6
(360..) days: 67.3 % 896 603 3 4 286 9 1 593

Function Name Sort by function name TLA Hit count Sort by function hit count Lines Sort by unexercised lines in function Branches Sort by unexercised branches in function
ApplyWorkerMain CBC 347 85.7 % (6 / 7)
AtEOXact_LogicalRepWorkers CBC 337758 100.0 % (12 / 12) 93.8 % (15 / 16)
DisableSubscriptionAndExit GNC 4 100.0 % (19 / 19) 66.7 % (4 / 6)
FindDeletedTupleInLocalRel GNC 11 50.0 % (10 / 20) 50.0 % (8 / 16)
FindReplTupleInLocalRel CBC 72262 100.0 % (12 / 12) 75.0 % (9 / 12)
InitializeLogRepWorker GNC 576 90.2 % (37 / 41) 60.0 % (18 / 30)
IsIndexUsableForFindingDeletedTuple GNC 1 85.7 % (6 / 7) 25.0 % (1 / 4)
IsLogicalParallelApplyWorker CBC 1502 100.0 % (2 / 2) 75.0 % (3 / 4)
IsLogicalWorker CBC 2184 100.0 % (2 / 2)
LogicalRepApplyLoop GNC 434 93.9 % (107 / 114) 75.8 % (50 / 66)
LogicalRepWorkersWakeupAtCommit CBC 234 100.0 % (6 / 6)
ReplicationOriginNameForLogicalRep CBC 1392 100.0 % (5 / 5) 100.0 % (2 / 2)
SetupApplyOrSyncWorker GNC 564 100.0 % (12 / 12) 87.5 % (7 / 8)
TargetPrivilegesCheck CBC 220556 100.0 % (10 / 10) 83.3 % (5 / 6)
UpdateWorkerStats CBC 190688 100.0 % (8 / 8) 100.0 % (2 / 2)
adjust_xid_advance_interval GNC 171 50.0 % (7 / 14) 33.3 % (4 / 12)
apply_dispatch CBC 337522 93.8 % (61 / 65) 81.8 % (18 / 22)
apply_error_callback GNC 3656 64.5 % (20 / 31) 68.8 % (11 / 16)
apply_handle_begin CBC 498 100.0 % (9 / 9) 50.0 % (1 / 2)
apply_handle_begin_prepare CBC 17 90.9 % (10 / 11) 33.3 % (2 / 6)
apply_handle_commit GNC 442 88.9 % (8 / 9) 25.0 % (1 / 4)
apply_handle_commit_internal GNC 482 89.5 % (17 / 19) 87.5 % (7 / 8)
apply_handle_commit_prepared GNC 22 100.0 % (18 / 18)
apply_handle_delete CBC 81936 91.4 % (32 / 35) 78.6 % (11 / 14)
apply_handle_delete_internal GNC 40321 100.0 % (22 / 22) 91.7 % (11 / 12)
apply_handle_insert CBC 186090 100.0 % (35 / 35) 92.9 % (13 / 14)
apply_handle_insert_internal CBC 76022 100.0 % (8 / 8) 75.0 % (6 / 8)
apply_handle_origin CBC 8 83.3 % (5 / 6) 40.0 % (4 / 10)
apply_handle_prepare GNC 16 94.1 % (16 / 17) 25.0 % (1 / 4)
apply_handle_prepare_internal GNC 26 100.0 % (9 / 9) 50.0 % (1 / 2)
apply_handle_relation CBC 485 100.0 % (6 / 6) 100.0 % (2 / 2)
apply_handle_rollback_prepared GNC 5 100.0 % (19 / 19) 50.0 % (1 / 2)
apply_handle_stream_abort GNC 38 91.3 % (42 / 46) 69.7 % (23 / 33)
apply_handle_stream_commit GNC 61 90.5 % (38 / 42) 56.5 % (13 / 23)
apply_handle_stream_prepare GNC 15 90.6 % (48 / 53) 51.9 % (14 / 27)
apply_handle_stream_start GNC 843 91.1 % (41 / 45) 61.3 % (19 / 31)
apply_handle_stream_stop GNC 842 87.9 % (29 / 33) 57.9 % (11 / 19)
apply_handle_truncate CBC 20 88.5 % (46 / 52) 54.3 % (38 / 70)
apply_handle_tuple_routing GNC 96 92.5 % (98 / 106) 62.5 % (30 / 48)
apply_handle_type CBC 18 75.0 % (3 / 4) 50.0 % (1 / 2)
apply_handle_update GNC 66166 92.9 % (39 / 42) 84.6 % (22 / 26)
apply_handle_update_internal GNC 31928 100.0 % (37 / 37) 75.0 % (9 / 12)
apply_spooled_messages CBC 31 97.7 % (43 / 44) 68.2 % (15 / 22)
apply_worker_exit CBC 46 83.3 % (5 / 6) 50.0 % (2 / 4)
begin_replication_step CBC 148824 100.0 % (8 / 8) 100.0 % (2 / 2)
can_advance_nonremovable_xid GNC 211047 100.0 % (6 / 6) 100.0 % (4 / 4)
changes_filename CBC 438 100.0 % (3 / 3)
check_relation_updatable CBC 72293 62.5 % (5 / 8) 30.0 % (3 / 10)
cleanup_subxact_info GNC 376 100.0 % (8 / 8) 100.0 % (2 / 2)
clear_subscription_skip_lsn GNC 537 93.3 % (28 / 30) 55.6 % (10 / 18)
create_edata_for_relation GNC 148283 100.0 % (19 / 19)
end_replication_step CBC 148766 100.0 % (4 / 4)
ensure_last_message CBC 4 91.7 % (11 / 12) 37.5 % (3 / 8)
finish_edata CBC 148236 100.0 % (9 / 9) 100.0 % (2 / 2)
get_candidate_xid GNC 171 92.9 % (13 / 14) 75.0 % (6 / 8)
get_flush_position GNC 23415 100.0 % (16 / 16) 83.3 % (5 / 6)
get_transaction_apply_action CBC 326510 100.0 % (12 / 12) 100.0 % (10 / 10)
handle_streamed_transaction GNC 324711 86.2 % (25 / 29) 58.6 % (17 / 29)
maybe_advance_nonremovable_xid GNC 211047 100.0 % (4 / 4) 100.0 % (2 / 2)
maybe_reread_subscription GNC 6168 85.1 % (40 / 47) 63.8 % (37 / 58)
maybe_start_skipping_changes GNC 542 100.0 % (8 / 8) 64.3 % (9 / 14)
on_exit_clear_xact_state GNC 507 100.0 % (3 / 3)
process_rdt_phase_transition GNC 6972 95.2 % (20 / 21) 85.7 % (6 / 7)
request_publisher_status GNC 2701 100.0 % (12 / 12) 100.0 % (4 / 4)
reset_apply_error_context_info CBC 1434 100.0 % (6 / 6)
reset_retention_data_fields GNC 38 100.0 % (10 / 10)
resume_conflict_info_retention GNC 1 80.0 % (4 / 5) 50.0 % (3 / 6)
send_feedback GNC 23401 94.7 % (36 / 38) 90.0 % (27 / 30)
set_apply_error_context_origin CBC 446 100.0 % (3 / 3)
set_apply_error_context_xact CBC 2933 100.0 % (4 / 4)
set_stream_options CBC 434 100.0 % (22 / 22) 50.0 % (7 / 14)
set_wal_receiver_timeout GNC 554 77.8 % (7 / 9) 37.5 % (3 / 8)
should_apply_changes_for_rel GNC 148364 50.0 % (9 / 18) 36.4 % (8 / 22)
should_stop_conflict_info_retention GNC 2795 90.9 % (10 / 11) 66.7 % (8 / 12)
slot_fill_defaults GNC 76021 100.0 % (25 / 25) 83.3 % (15 / 18)
slot_modify_data CBC 31924 97.1 % (34 / 35) 65.0 % (13 / 20)
slot_store_data CBC 148297 96.9 % (31 / 32) 72.2 % (13 / 18)
start_apply GNC 434 83.3 % (10 / 12) 66.7 % (4 / 6)
stop_conflict_info_retention GNC 1 90.0 % (9 / 10) 50.0 % (4 / 8)
stop_skipping_changes CBC 30 100.0 % (5 / 5) 75.0 % (3 / 4)
store_flush_position GNC 552 100.0 % (9 / 9) 100.0 % (2 / 2)
stream_abort_internal CBC 14 100.0 % (26 / 26) 100.0 % (8 / 8)
stream_cleanup_files CBC 31 100.0 % (6 / 6)
stream_close_file CBC 393 100.0 % (5 / 5) 50.0 % (1 / 2)
stream_open_and_write_change CBC 5 100.0 % (7 / 7) 50.0 % (2 / 4)
stream_open_file CBC 363 100.0 % (13 / 13) 60.0 % (6 / 10)
stream_start_internal GNC 363 100.0 % (12 / 12) 100.0 % (4 / 4)
stream_stop_internal CBC 363 100.0 % (7 / 7) 50.0 % (1 / 2)
stream_write_change CBC 107554 100.0 % (8 / 8) 50.0 % (1 / 2)
subscription_change_cb GNC 94 100.0 % (3 / 3)
subxact_filename CBC 747 100.0 % (3 / 3)
subxact_info_add GNC 102513 100.0 % (26 / 26) 87.5 % (14 / 16)
subxact_info_read GNC 344 100.0 % (17 / 17) 60.0 % (6 / 10)
subxact_info_write CBC 372 100.0 % (15 / 15) 83.3 % (5 / 6)
update_retention_status GNC 2 90.9 % (10 / 11) 50.0 % (1 / 2)
wait_for_local_flush GNC 117 96.8 % (30 / 31) 83.3 % (25 / 30)
wait_for_publisher_status GNC 3981 83.3 % (10 / 12) 87.5 % (7 / 8)

Generated by: LCOV version 2.4-beta