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: d36b728949bf4e37ada1cd23e0f2aaa94f609a70 vs 52e118fe2f7e3381bdaa479816a7f72eda2ae517 Lines: 92.8 % 1881 1746 33 102 6 279 1461 5 2 68
Current Date: 2026-06-29 16:15:13 +0200 Functions: 100.0 % 98 98 54 44 4
Baseline: lcov-20260630-baseline Branches: 67.8 % 1117 757 64 4 4 288 10 1 149 597
Baseline Date: 2026-06-29 13:01:57 +0200 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 100.0 % 2 2 2
(30,360] days: 88.7 % 318 282 33 3 277 5
(360..) days: 93.7 % 1561 1462 99 6 1456 5
Function coverage date bins:
(30,360] days: 100.0 % 20 20 20
(360..) days: 100.0 % 78 78 34 44
Branch coverage date bins:
(30,360] days: 67.6 % 225 152 64 9 149 3
(360..) days: 67.8 % 892 605 4 4 279 10 1 594

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 353 85.7 % (6 / 7)
AtEOXact_LogicalRepWorkers CBC 426894 100.0 % (12 / 12) 93.8 % (15 / 16)
DisableSubscriptionAndExit GNC 4 100.0 % (19 / 19) 66.7 % (4 / 6)
FindDeletedTupleInLocalRel GNC 9 50.0 % (10 / 20) 50.0 % (8 / 16)
FindReplTupleInLocalRel CBC 72271 100.0 % (12 / 12) 75.0 % (9 / 12)
InitializeLogRepWorker GNC 588 95.0 % (38 / 40) 66.7 % (20 / 30)
IsIndexUsableForFindingDeletedTuple GNC 1 85.7 % (6 / 7) 25.0 % (1 / 4)
IsLogicalParallelApplyWorker CBC 2028 100.0 % (2 / 2) 75.0 % (3 / 4)
IsLogicalWorker CBC 2765 100.0 % (2 / 2)
LogicalRepApplyLoop GNC 441 93.0 % (106 / 114) 74.2 % (49 / 66)
LogicalRepWorkersWakeupAtCommit CBC 297 100.0 % (6 / 6)
ReplicationOriginNameForLogicalRep CBC 1455 100.0 % (5 / 5) 100.0 % (2 / 2)
SetupApplyOrSyncWorker GNC 576 100.0 % (12 / 12) 87.5 % (7 / 8)
TargetPrivilegesCheck CBC 240794 100.0 % (10 / 10) 83.3 % (5 / 6)
UpdateWorkerStats CBC 210860 100.0 % (8 / 8) 100.0 % (2 / 2)
adjust_xid_advance_interval GNC 67 92.9 % (13 / 14) 85.7 % (12 / 14)
apply_dispatch CBC 357802 93.8 % (61 / 65) 81.8 % (18 / 22)
apply_error_callback GNC 3312 64.5 % (20 / 31) 68.8 % (11 / 16)
apply_handle_begin CBC 515 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 457 88.9 % (8 / 9) 25.0 % (1 / 4)
apply_handle_commit_internal GNC 497 89.5 % (17 / 19) 87.5 % (7 / 8)
apply_handle_commit_prepared GNC 22 100.0 % (18 / 18)
apply_handle_delete CBC 81942 91.4 % (32 / 35) 78.6 % (11 / 14)
apply_handle_delete_internal GNC 40327 100.0 % (20 / 20) 91.7 % (11 / 12)
apply_handle_insert CBC 206330 100.0 % (35 / 35) 92.9 % (13 / 14)
apply_handle_insert_internal CBC 96240 100.0 % (8 / 8) 75.0 % (6 / 8)
apply_handle_origin CBC 9 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 486 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 842 91.1 % (41 / 45) 61.3 % (19 / 31)
apply_handle_stream_stop GNC 841 87.9 % (29 / 33) 57.9 % (11 / 19)
apply_handle_truncate CBC 19 88.5 % (46 / 52) 54.3 % (38 / 70)
apply_handle_tuple_routing GNC 95 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 66169 90.7 % (39 / 43) 78.6 % (22 / 28)
apply_handle_update_internal GNC 31931 100.0 % (35 / 35) 75.0 % (9 / 12)
apply_spooled_messages CBC 31 97.7 % (43 / 44) 68.2 % (15 / 22)
apply_worker_exit CBC 48 83.3 % (5 / 6) 50.0 % (2 / 4)
begin_replication_step CBC 169071 100.0 % (8 / 8) 100.0 % (2 / 2)
can_advance_nonremovable_xid GNC 249675 100.0 % (6 / 6) 100.0 % (4 / 4)
changes_filename CBC 437 100.0 % (3 / 3)
check_relation_updatable CBC 72302 62.5 % (5 / 8) 30.0 % (3 / 10)
clear_subscription_skip_lsn GNC 552 93.3 % (28 / 30) 55.6 % (10 / 18)
create_edata_for_relation GNC 168510 100.0 % (19 / 19)
end_replication_step CBC 169013 100.0 % (4 / 4)
ensure_last_message CBC 4 91.7 % (11 / 12) 37.5 % (3 / 8)
finish_edata CBC 168465 100.0 % (9 / 9) 100.0 % (2 / 2)
get_candidate_xid GNC 258 100.0 % (14 / 14) 87.5 % (7 / 8)
get_flush_position GNC 41900 100.0 % (16 / 16) 83.3 % (5 / 6)
get_transaction_apply_action CBC 346757 100.0 % (12 / 12) 100.0 % (10 / 10)
handle_streamed_transaction GNC 344960 86.2 % (25 / 29) 58.6 % (17 / 29)
maybe_advance_nonremovable_xid GNC 249675 100.0 % (4 / 4) 100.0 % (2 / 2)
maybe_reread_subscription GNC 5797 84.8 % (39 / 46) 63.8 % (37 / 58)
maybe_start_skipping_changes GNC 559 100.0 % (8 / 8) 64.3 % (9 / 14)
on_exit_clear_xact_state GNC 514 100.0 % (3 / 3)
process_rdt_phase_transition GNC 6044 95.2 % (20 / 21) 85.7 % (6 / 7)
request_publisher_status GNC 2459 100.0 % (12 / 12) 100.0 % (4 / 4)
reset_apply_error_context_info CBC 1448 100.0 % (6 / 6)
reset_retention_data_fields GNC 33 100.0 % (10 / 10)
resume_conflict_info_retention GNC 1 80.0 % (4 / 5) 50.0 % (3 / 6)
send_feedback GNC 41890 94.7 % (36 / 38) 90.0 % (27 / 30)
set_apply_error_context_origin CBC 453 100.0 % (3 / 3)
set_apply_error_context_xact CBC 2963 100.0 % (4 / 4)
set_stream_options CBC 441 100.0 % (22 / 22) 50.0 % (7 / 14)
set_wal_receiver_timeout GNC 558 77.8 % (7 / 9) 37.5 % (3 / 8)
should_apply_changes_for_rel GNC 168610 61.1 % (11 / 18) 40.9 % (9 / 22)
should_stop_conflict_info_retention GNC 2551 90.9 % (10 / 11) 66.7 % (8 / 12)
slot_fill_defaults GNC 96239 100.0 % (25 / 25) 83.3 % (15 / 18)
slot_modify_data CBC 31930 94.4 % (34 / 36) 59.1 % (13 / 22)
slot_store_data CBC 168522 93.9 % (31 / 33) 65.0 % (13 / 20)
start_apply GNC 441 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 567 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 GNC 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 GNC 93 100.0 % (3 / 3)
subxact_filename CBC 745 100.0 % (3 / 3)
subxact_info_add GNC 102514 100.0 % (26 / 26) 87.5 % (14 / 16)
subxact_info_read GNC 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 GNC 2 90.9 % (10 / 11) 50.0 % (1 / 2)
wait_for_local_flush GNC 114 93.5 % (29 / 31) 80.0 % (24 / 30)
wait_for_publisher_status GNC 3211 83.3 % (10 / 12) 87.5 % (7 / 8)

Generated by: LCOV version 2.0-1