LCOV - differential code coverage report
Current view: top level - src/backend/replication/logical - worker.c (source / functions) Coverage Total Hit UNC UBC GBC GNC CBC DUB DCB
Current: f76c13edadc2b319036e0d238703ed56bb23f934 vs 9e17d25e79d4756be08b4a5521b4b58450217137 Lines: 92.8 % 1895 1759 8 128 3 56 1700 8 58
Current Date: 2026-09-20 14:13:17 +0900 Functions: 100.0 % 98 98 24 74 2
Baseline: lcov-20260920-baseline Branches: 67.8 % 1119 759 8 352 2 14 743
Baseline Date: 2026-09-20 14:13:13 +0900 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 87.5 % 64 56 8 55 1
(30,360] days: 90.8 % 109 99 10 1 98
(360..) days: 93.1 % 1722 1604 118 3 1601
Function coverage date bins:
(7,30] days: 100.0 % 2 2 2
(30,360] days: 100.0 % 5 5 5
(360..) days: 100.0 % 91 91 22 69
Branch coverage date bins:
(7,30] days: 63.6 % 22 14 8 14
(30,360] days: 61.2 % 80 49 31 49
(360..) days: 68.4 % 1017 696 321 2 694

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 391 85.7 % (6 / 7)
AtEOXact_LogicalRepWorkers CBC 426048 100.0 % (12 / 12) 93.8 % (15 / 16)
DisableSubscriptionAndExit CBC 4 100.0 % (19 / 19) 66.7 % (4 / 6)
FindDeletedTupleInLocalRel CBC 11 50.0 % (10 / 20) 50.0 % (8 / 16)
FindReplTupleInLocalRel CBC 72261 100.0 % (12 / 12) 75.0 % (9 / 12)
InitializeLogRepWorker GNC 635 90.9 % (40 / 44) 60.0 % (18 / 30)
IsIndexUsableForFindingDeletedTuple CBC 1 85.7 % (6 / 7) 25.0 % (1 / 4)
IsLogicalParallelApplyWorker CBC 2028 100.0 % (2 / 2) 75.0 % (3 / 4)
IsLogicalWorker CBC 2801 100.0 % (2 / 2)
LogicalRepApplyLoop CBC 466 93.0 % (106 / 114) 75.8 % (50 / 66)
LogicalRepWorkersWakeupAtCommit CBC 395 100.0 % (6 / 6)
ReplicationOriginNameForLogicalRep CBC 1550 100.0 % (5 / 5) 100.0 % (2 / 2)
SetupApplyOrSyncWorker CBC 623 100.0 % (16 / 16) 87.5 % (7 / 8)
TargetPrivilegesCheck CBC 241006 100.0 % (10 / 10) 83.3 % (5 / 6)
UpdateWorkerStats CBC 209889 100.0 % (8 / 8) 100.0 % (2 / 2)
adjust_xid_advance_interval CBC 97 92.9 % (13 / 14) 85.7 % (12 / 14)
apply_dispatch GNC 353047 93.8 % (61 / 65) 81.8 % (18 / 22)
apply_error_callback GNC 2992 64.5 % (20 / 31) 68.8 % (11 / 16)
apply_handle_begin GNC 520 100.0 % (8 / 8) 50.0 % (1 / 2)
apply_handle_begin_prepare GNC 17 90.0 % (9 / 10) 33.3 % (2 / 6)
apply_handle_commit GNC 453 88.9 % (8 / 9) 25.0 % (1 / 4)
apply_handle_commit_internal CBC 492 89.5 % (17 / 19) 87.5 % (7 / 8)
apply_handle_commit_prepared GNC 22 100.0 % (18 / 18)
apply_handle_delete GNC 81936 91.4 % (32 / 35) 78.6 % (11 / 14)
apply_handle_delete_internal CBC 40321 100.0 % (20 / 20) 91.7 % (11 / 12)
apply_handle_insert GNC 201573 100.0 % (35 / 35) 92.9 % (13 / 14)
apply_handle_insert_internal CBC 96472 100.0 % (8 / 8) 75.0 % (6 / 8)
apply_handle_origin CBC 10 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 CBC 26 100.0 % (9 / 9) 50.0 % (1 / 2)
apply_handle_relation CBC 505 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 59 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 838 91.1 % (41 / 45) 61.3 % (19 / 31)
apply_handle_stream_stop GNC 837 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 CBC 105 92.3 % (96 / 104) 62.5 % (30 / 48)
apply_handle_type CBC 18 75.0 % (3 / 4) 50.0 % (1 / 2)
apply_handle_update GNC 66165 90.7 % (39 / 43) 78.6 % (22 / 28)
apply_handle_update_internal CBC 31927 100.0 % (35 / 35) 75.0 % (9 / 12)
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)
begin_replication_step CBC 169305 100.0 % (8 / 8) 100.0 % (2 / 2)
can_advance_nonremovable_xid CBC 244473 100.0 % (6 / 6) 100.0 % (4 / 4)
changes_filename CBC 437 100.0 % (3 / 3)
check_relation_updatable CBC 72292 62.5 % (5 / 8) 30.0 % (3 / 10)
cleanup_subxact_info CBC 375 100.0 % (8 / 8) 100.0 % (2 / 2)
clear_subscription_skip_lsn CBC 547 93.3 % (28 / 30) 55.6 % (10 / 18)
create_edata_for_relation CBC 168732 100.0 % (19 / 19)
end_replication_step CBC 169237 100.0 % (4 / 4)
ensure_last_message CBC 4 91.7 % (11 / 12) 37.5 % (3 / 8)
finish_edata CBC 168678 100.0 % (10 / 10) 100.0 % (2 / 2)
get_candidate_xid CBC 411 100.0 % (14 / 14) 87.5 % (7 / 8)
get_flush_position CBC 36739 100.0 % (16 / 16) 83.3 % (5 / 6)
get_transaction_apply_action CBC 342000 100.0 % (12 / 12) 100.0 % (10 / 10)
handle_streamed_transaction CBC 340213 86.2 % (25 / 29) 58.6 % (17 / 29)
maybe_advance_nonremovable_xid CBC 244473 100.0 % (4 / 4) 100.0 % (2 / 2)
maybe_reread_subscription CBC 5922 86.0 % (43 / 50) 63.8 % (37 / 58)
maybe_start_skipping_changes CBC 564 100.0 % (8 / 8) 64.3 % (9 / 14)
on_exit_clear_xact_state CBC 554 100.0 % (3 / 3)
process_rdt_phase_transition CBC 6683 95.2 % (20 / 21) 85.7 % (6 / 7)
request_publisher_status CBC 2166 100.0 % (12 / 12) 100.0 % (4 / 4)
reset_apply_remote_context GNC 1438 100.0 % (6 / 6)
reset_retention_data_fields CBC 49 100.0 % (10 / 10)
resume_conflict_info_retention CBC 1 80.0 % (4 / 5) 50.0 % (3 / 6)
run_apply_worker CBC 310 92.7 % (38 / 41) 75.0 % (21 / 28)
send_feedback CBC 36724 94.7 % (36 / 38) 90.0 % (27 / 30)
set_apply_error_context_origin GNC 479 100.0 % (3 / 3)
set_remote_transaction_info GNC 2952 100.0 % (4 / 4)
set_stream_options CBC 467 100.0 % (22 / 22) 50.0 % (7 / 14)
set_wal_receiver_timeout CBC 607 77.8 % (7 / 9) 37.5 % (3 / 8)
should_apply_changes_for_rel GNC 168843 61.1 % (11 / 18) 40.9 % (9 / 22)
should_stop_conflict_info_retention CBC 2275 90.9 % (10 / 11) 66.7 % (8 / 12)
slot_fill_defaults CBC 96471 100.0 % (25 / 25) 83.3 % (15 / 18)
slot_modify_data GNC 31925 94.4 % (34 / 36) 59.1 % (13 / 22)
slot_store_data GNC 168746 93.9 % (31 / 33) 65.0 % (13 / 20)
start_apply CBC 466 83.3 % (10 / 12) 66.7 % (4 / 6)
stop_conflict_info_retention CBC 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 CBC 561 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 392 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 362 100.0 % (13 / 13) 60.0 % (6 / 10)
stream_start_internal CBC 362 100.0 % (12 / 12) 100.0 % (4 / 4)
stream_stop_internal CBC 362 100.0 % (7 / 7) 50.0 % (1 / 2)
stream_write_change CBC 107555 100.0 % (8 / 8) 50.0 % (1 / 2)
subscription_change_cb CBC 104 100.0 % (3 / 3)
subxact_filename CBC 745 100.0 % (3 / 3)
subxact_info_add CBC 102514 100.0 % (26 / 26) 87.5 % (14 / 16)
subxact_info_read CBC 343 100.0 % (17 / 17) 60.0 % (6 / 10)
subxact_info_write CBC 371 100.0 % (15 / 15) 83.3 % (5 / 6)
update_retention_status CBC 2 90.9 % (10 / 11) 50.0 % (1 / 2)
wait_for_local_flush CBC 121 96.8 % (30 / 31) 83.3 % (25 / 30)
wait_for_publisher_status CBC 3983 83.3 % (10 / 12) 87.5 % (7 / 8)

Generated by: LCOV version 2.0-1