LCOV - differential code coverage report
Current view: top level - src/backend/replication/logical - worker.c (source / functions) Coverage Total Hit UNC LBC UBC GBC GNC CBC DUB DCB
Current: c38de3ae6098ccf1904109f2e550eb4777f66024 vs e352ac8c5c90ed6ce792f044c22145578542a330 Lines: 92.8 % 1904 1767 8 1 128 56 1711 8 58
Current Date: 2026-11-05 14:14:01 +0100 Functions: 100.0 % 98 98 24 74 2
Baseline: lcov-20261105-baseline Branches: 67.9 % 1125 764 8 1 352 1 14 749
Baseline Date: 2026-11-05 14:14:01 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 91.6 % 166 152 8 6 56 96
(360..) days: 92.9 % 1738 1615 1 122 1615
Function coverage date bins:
(30,360] days: 100.0 % 8 8 2 6
(360..) days: 100.0 % 90 90 22 68
Branch coverage date bins:
(30,360] days: 57.1 % 84 48 8 28 14 34
(360..) days: 68.8 % 1041 716 1 324 1 715

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
apply_error_callback GNC 3070 64.5 % (20 / 31) 68.8 % (11 / 16)
FindDeletedTupleInLocalRel CBC 20 56.5 % (13 / 23) 55.6 % (10 / 18)
should_apply_changes_for_rel GNC 168577 50.0 % (9 / 18) 36.4 % (8 / 22)
LogicalRepApplyLoop CBC 476 93.0 % (106 / 114) 75.8 % (50 / 66)
apply_handle_tuple_routing CBC 111 92.3 % (96 / 104) 62.5 % (30 / 48)
maybe_reread_subscription CBC 7107 86.0 % (43 / 50) 63.8 % (37 / 58)
apply_handle_truncate CBC 20 88.5 % (46 / 52) 54.3 % (38 / 70)
apply_handle_stream_prepare GNC 15 90.6 % (48 / 53) 51.9 % (14 / 27)
InitializeLogRepWorker GNC 645 90.9 % (40 / 44) 60.0 % (18 / 30)
apply_dispatch GNC 357595 93.8 % (61 / 65) 81.8 % (18 / 22)
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_start GNC 884 91.1 % (41 / 45) 61.3 % (19 / 31)
apply_handle_stream_stop GNC 883 87.9 % (29 / 33) 57.9 % (11 / 19)
apply_handle_update GNC 66181 90.7 % (39 / 43) 78.6 % (22 / 28)
handle_streamed_transaction CBC 344644 86.2 % (25 / 29) 58.6 % (17 / 29)
apply_handle_delete GNC 81875 91.4 % (32 / 35) 78.6 % (11 / 14)
run_apply_worker CBC 316 92.7 % (38 / 41) 75.0 % (21 / 28)
apply_handle_commit_internal CBC 503 89.5 % (17 / 19) 87.5 % (7 / 8)
clear_subscription_skip_lsn CBC 558 93.3 % (28 / 30) 55.6 % (10 / 18)
send_feedback CBC 36996 94.7 % (36 / 38) 90.0 % (27 / 30)
set_wal_receiver_timeout CBC 614 77.8 % (7 / 9) 37.5 % (3 / 8)
slot_modify_data GNC 31929 94.4 % (34 / 36) 59.1 % (13 / 22)
slot_store_data GNC 168508 93.9 % (31 / 33) 65.0 % (13 / 20)
start_apply CBC 476 83.3 % (10 / 12) 66.7 % (4 / 6)
wait_for_local_flush CBC 129 93.5 % (29 / 31) 80.0 % (24 / 30)
wait_for_publisher_status CBC 4022 83.3 % (10 / 12) 87.5 % (7 / 8)
ApplyWorkerMain CBC 397 85.7 % (6 / 7)
IsIndexUsableForFindingDeletedTuple CBC 3 85.7 % (6 / 7) 25.0 % (1 / 4)
adjust_xid_advance_interval CBC 121 92.9 % (13 / 14) 85.7 % (12 / 14)
apply_handle_begin_prepare GNC 17 90.0 % (9 / 10) 33.3 % (2 / 6)
apply_handle_commit GNC 463 88.9 % (8 / 9) 25.0 % (1 / 4)
apply_handle_origin CBC 7 83.3 % (5 / 6) 40.0 % (4 / 10)
apply_handle_prepare GNC 16 94.1 % (16 / 17) 25.0 % (1 / 4)
apply_handle_type CBC 18 75.0 % (3 / 4) 50.0 % (1 / 2)
apply_spooled_messages GNC 31 97.7 % (42 / 43) 68.2 % (15 / 22)
apply_worker_exit CBC 49 83.3 % (5 / 6) 50.0 % (2 / 4)
check_relation_updatable CBC 72309 87.5 % (7 / 8) 60.0 % (6 / 10)
ensure_last_message CBC 4 91.7 % (11 / 12) 37.5 % (3 / 8)
process_rdt_phase_transition CBC 6937 95.2 % (20 / 21) 85.7 % (6 / 7)
resume_conflict_info_retention CBC 1 80.0 % (4 / 5) 50.0 % (3 / 6)
should_stop_conflict_info_retention CBC 2340 90.9 % (10 / 11) 66.7 % (8 / 12)
stop_conflict_info_retention CBC 1 90.0 % (9 / 10) 50.0 % (4 / 8)
update_retention_status CBC 2 90.9 % (10 / 11) 50.0 % (1 / 2)
AtEOXact_LogicalRepWorkers CBC 429249 100.0 % (12 / 12) 93.8 % (15 / 16)
DisableSubscriptionAndExit CBC 4 100.0 % (19 / 19) 66.7 % (4 / 6)
FindReplTupleInLocalRel CBC 72276 100.0 % (18 / 18) 68.8 % (11 / 16)
IsLogicalParallelApplyWorker CBC 2082 100.0 % (2 / 2) 75.0 % (3 / 4)
IsLogicalWorker CBC 2879 100.0 % (2 / 2)
LogicalRepWorkersWakeupAtCommit CBC 409 100.0 % (6 / 6)
ReplicationOriginNameForLogicalRep CBC 1565 100.0 % (5 / 5) 100.0 % (2 / 2)
SetupApplyOrSyncWorker CBC 633 100.0 % (16 / 16) 87.5 % (7 / 8)
TargetPrivilegesCheck CBC 240764 100.0 % (10 / 10) 83.3 % (5 / 6)
UpdateWorkerStats CBC 210838 100.0 % (8 / 8) 100.0 % (2 / 2)
apply_handle_begin GNC 536 100.0 % (8 / 8) 50.0 % (1 / 2)
apply_handle_commit_prepared GNC 22 100.0 % (18 / 18)
apply_handle_delete_internal CBC 40322 100.0 % (19 / 19) 91.7 % (11 / 12)
apply_handle_insert GNC 206039 100.0 % (35 / 35) 92.9 % (13 / 14)
apply_handle_insert_internal CBC 96210 100.0 % (8 / 8) 75.0 % (6 / 8)
apply_handle_prepare_internal CBC 26 100.0 % (9 / 9) 50.0 % (1 / 2)
apply_handle_relation CBC 515 100.0 % (6 / 6) 100.0 % (2 / 2)
apply_handle_rollback_prepared GNC 5 100.0 % (19 / 19) 50.0 % (1 / 2)
apply_handle_update_internal CBC 31941 100.0 % (36 / 36) 75.0 % (9 / 12)
begin_replication_step CBC 169056 100.0 % (8 / 8) 100.0 % (2 / 2)
can_advance_nonremovable_xid CBC 244611 100.0 % (6 / 6) 100.0 % (4 / 4)
changes_filename CBC 455 100.0 % (3 / 3)
cleanup_subxact_info CBC 393 100.0 % (8 / 8) 100.0 % (2 / 2)
create_edata_for_relation CBC 168485 100.0 % (19 / 19)
end_replication_step CBC 168981 100.0 % (4 / 4)
finish_edata CBC 168425 100.0 % (10 / 10) 100.0 % (2 / 2)
get_candidate_xid CBC 555 100.0 % (14 / 14) 87.5 % (7 / 8)
get_flush_position CBC 37010 100.0 % (16 / 16) 83.3 % (5 / 6)
get_transaction_apply_action CBC 346525 100.0 % (12 / 12) 100.0 % (10 / 10)
maybe_advance_nonremovable_xid CBC 244611 100.0 % (4 / 4) 100.0 % (2 / 2)
maybe_start_skipping_changes CBC 580 100.0 % (8 / 8) 64.3 % (9 / 14)
on_exit_clear_xact_state CBC 561 100.0 % (3 / 3)
request_publisher_status CBC 2229 100.0 % (12 / 12) 100.0 % (4 / 4)
reset_apply_remote_context GNC 1496 100.0 % (6 / 6)
reset_retention_data_fields CBC 59 100.0 % (10 / 10)
set_apply_error_context_origin GNC 488 100.0 % (3 / 3)
set_remote_transaction_info GNC 3074 100.0 % (4 / 4)
set_stream_options CBC 476 100.0 % (22 / 22) 50.0 % (7 / 14)
slot_fill_defaults CBC 96209 100.0 % (25 / 25) 83.3 % (15 / 18)
stop_skipping_changes CBC 30 100.0 % (5 / 5) 75.0 % (3 / 4)
store_flush_position CBC 573 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 410 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 380 100.0 % (13 / 13) 60.0 % (6 / 10)
stream_start_internal CBC 380 100.0 % (12 / 12) 100.0 % (4 / 4)
stream_stop_internal CBC 380 100.0 % (7 / 7) 50.0 % (1 / 2)
stream_write_change CBC 107492 100.0 % (8 / 8) 50.0 % (1 / 2)
subscription_change_cb CBC 107 100.0 % (3 / 3)
subxact_filename CBC 781 100.0 % (3 / 3)
subxact_info_add CBC 102451 100.0 % (26 / 26) 87.5 % (14 / 16)
subxact_info_read CBC 361 100.0 % (17 / 17) 60.0 % (6 / 10)
subxact_info_write CBC 389 100.0 % (15 / 15) 83.3 % (5 / 6)

Generated by: LCOV version 2.0-1