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: ba12a202ce1b5581dc0ed149cf3f637d7897ad5d vs 2866d8c7dbfc9d882a7d80fef93fbbe763709932 Lines: 92.7 % 1895 1757 8 6 124 2 56 1699 8 58
Current Date: 2026-08-27 14:31:44 +0300 Functions: 100.0 % 98 98 24 74 2
Baseline: lcov-20260827-baseline Branches: 67.6 % 1119 757 8 7 347 2 14 741
Baseline Date: 2026-08-27 14:31:58 +0300 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
[..1] days: 87.5 % 64 56 8 55 1
(7,30] days: 100.0 % 17 17 17
(30,360] days: 86.0 % 179 154 1 24 2 1 151
(360..) days: 93.6 % 1635 1530 5 100 1530
Function coverage date bins:
[..1] days: 100.0 % 2 2 2
(30,360] days: 100.0 % 10 10 10
(360..) days: 100.0 % 86 86 22 64
Branch coverage date bins:
[..1] days: 63.6 % 22 14 8 14
(7,30] days: 100.0 % 4 4 4
(30,360] days: 62.3 % 138 86 3 49 2 84
(360..) days: 68.4 % 955 653 4 298 653

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
IsIndexUsableForFindingDeletedTuple CBC 1 85.7 % (6 / 7) 25.0 % (1 / 4)
resume_conflict_info_retention CBC 1 80.0 % (4 / 5) 50.0 % (3 / 6)
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)
DisableSubscriptionAndExit CBC 4 100.0 % (19 / 19) 66.7 % (4 / 6)
ensure_last_message CBC 4 91.7 % (11 / 12) 37.5 % (3 / 8)
apply_handle_rollback_prepared GNC 5 100.0 % (19 / 19) 50.0 % (1 / 2)
stream_open_and_write_change CBC 5 100.0 % (7 / 7) 50.0 % (2 / 4)
FindDeletedTupleInLocalRel CBC 9 50.0 % (10 / 20) 50.0 % (8 / 16)
apply_handle_origin CBC 9 83.3 % (5 / 6) 40.0 % (4 / 10)
stream_abort_internal CBC 14 100.0 % (26 / 26) 100.0 % (8 / 8)
apply_handle_prepare GNC 16 94.1 % (16 / 17) 25.0 % (1 / 4)
apply_handle_begin_prepare GNC 17 90.0 % (9 / 10) 33.3 % (2 / 6)
apply_handle_stream_prepare GNC 17 90.6 % (48 / 53) 51.9 % (14 / 27)
apply_handle_type CBC 18 75.0 % (3 / 4) 50.0 % (1 / 2)
apply_handle_truncate CBC 20 88.5 % (46 / 52) 54.3 % (38 / 70)
apply_handle_commit_prepared GNC 22 100.0 % (18 / 18)
apply_handle_prepare_internal CBC 27 100.0 % (9 / 9) 50.0 % (1 / 2)
apply_spooled_messages GNC 31 97.7 % (42 / 43) 68.2 % (15 / 22)
stream_cleanup_files CBC 31 100.0 % (6 / 6)
stop_skipping_changes CBC 32 100.0 % (5 / 5) 75.0 % (3 / 4)
reset_retention_data_fields CBC 36 100.0 % (10 / 10)
apply_handle_stream_abort GNC 38 91.3 % (42 / 46) 69.7 % (23 / 33)
apply_worker_exit CBC 48 83.3 % (5 / 6) 50.0 % (2 / 4)
apply_handle_stream_commit GNC 59 90.5 % (38 / 42) 56.5 % (13 / 23)
adjust_xid_advance_interval CBC 74 92.9 % (13 / 14) 85.7 % (12 / 14)
wait_for_local_flush CBC 97 90.3 % (28 / 31) 80.0 % (24 / 30)
subscription_change_cb CBC 99 100.0 % (3 / 3)
apply_handle_tuple_routing CBC 102 92.3 % (96 / 104) 62.5 % (30 / 48)
get_candidate_xid CBC 285 100.0 % (14 / 14) 87.5 % (7 / 8)
run_apply_worker CBC 305 92.7 % (38 / 41) 75.0 % (21 / 28)
subxact_info_read CBC 344 100.0 % (17 / 17) 60.0 % (6 / 10)
stream_open_file CBC 363 100.0 % (13 / 13) 60.0 % (6 / 10)
stream_start_internal CBC 363 100.0 % (12 / 12) 100.0 % (4 / 4)
stream_stop_internal CBC 363 100.0 % (7 / 7) 50.0 % (1 / 2)
subxact_info_write CBC 372 100.0 % (15 / 15) 83.3 % (5 / 6)
cleanup_subxact_info CBC 376 100.0 % (8 / 8) 100.0 % (2 / 2)
ApplyWorkerMain CBC 381 85.7 % (6 / 7)
stream_close_file CBC 393 100.0 % (5 / 5) 50.0 % (1 / 2)
LogicalRepWorkersWakeupAtCommit CBC 395 100.0 % (6 / 6)
changes_filename CBC 438 100.0 % (3 / 3)
LogicalRepApplyLoop CBC 456 93.0 % (106 / 114) 74.2 % (49 / 66)
start_apply CBC 456 83.3 % (10 / 12) 66.7 % (4 / 6)
set_stream_options CBC 457 100.0 % (22 / 22) 50.0 % (7 / 14)
apply_handle_commit GNC 464 88.9 % (8 / 9) 25.0 % (1 / 4)
set_apply_error_context_origin GNC 469 100.0 % (3 / 3)
apply_handle_relation CBC 499 100.0 % (6 / 6) 100.0 % (2 / 2)
apply_handle_commit_internal CBC 503 89.5 % (17 / 19) 87.5 % (7 / 8)
apply_handle_begin GNC 526 100.0 % (8 / 8) 50.0 % (1 / 2)
on_exit_clear_xact_state CBC 543 100.0 % (3 / 3)
clear_subscription_skip_lsn CBC 560 93.3 % (28 / 30) 55.6 % (10 / 18)
maybe_start_skipping_changes CBC 570 100.0 % (8 / 8) 64.3 % (9 / 14)
store_flush_position CBC 573 100.0 % (9 / 9) 100.0 % (2 / 2)
set_wal_receiver_timeout CBC 593 77.8 % (7 / 9) 37.5 % (3 / 8)
SetupApplyOrSyncWorker CBC 609 100.0 % (16 / 16) 87.5 % (7 / 8)
InitializeLogRepWorker GNC 621 90.9 % (40 / 44) 60.0 % (18 / 30)
subxact_filename CBC 747 100.0 % (3 / 3)
apply_handle_stream_stop GNC 850 87.9 % (29 / 33) 57.9 % (11 / 19)
apply_handle_stream_start GNC 851 91.1 % (41 / 45) 61.3 % (19 / 31)
reset_apply_remote_context GNC 1464 100.0 % (6 / 6)
ReplicationOriginNameForLogicalRep CBC 1525 100.0 % (5 / 5) 100.0 % (2 / 2)
IsLogicalParallelApplyWorker CBC 2028 100.0 % (2 / 2) 75.0 % (3 / 4)
IsLogicalWorker CBC 2778 100.0 % (2 / 2)
set_remote_transaction_info GNC 2999 100.0 % (4 / 4)
request_publisher_status CBC 5622 100.0 % (12 / 12) 100.0 % (4 / 4)
should_stop_conflict_info_retention CBC 5699 90.9 % (10 / 11) 66.7 % (8 / 12)
apply_error_callback GNC 6487 64.5 % (20 / 31) 68.8 % (11 / 16)
maybe_reread_subscription CBC 6925 86.0 % (43 / 50) 63.8 % (37 / 58)
wait_for_publisher_status CBC 8424 100.0 % (12 / 12) 100.0 % (8 / 8)
process_rdt_phase_transition CBC 14430 95.2 % (20 / 21) 85.7 % (6 / 7)
slot_modify_data GNC 31933 94.4 % (34 / 36) 59.1 % (13 / 22)
apply_handle_update_internal CBC 31934 100.0 % (35 / 35) 75.0 % (9 / 12)
apply_handle_delete_internal CBC 40328 100.0 % (20 / 20) 91.7 % (11 / 12)
send_feedback CBC 40667 94.7 % (36 / 38) 90.0 % (27 / 30)
get_flush_position CBC 40676 100.0 % (16 / 16) 83.3 % (5 / 6)
apply_handle_update GNC 66174 90.7 % (39 / 43) 78.6 % (22 / 28)
FindReplTupleInLocalRel CBC 72275 100.0 % (12 / 12) 75.0 % (9 / 12)
check_relation_updatable CBC 72306 62.5 % (5 / 8) 30.0 % (3 / 10)
apply_handle_delete GNC 81944 91.4 % (32 / 35) 78.6 % (11 / 14)
apply_handle_insert_internal CBC 96267 100.0 % (8 / 8) 75.0 % (6 / 8)
slot_fill_defaults CBC 96267 100.0 % (25 / 25) 83.3 % (15 / 18)
subxact_info_add CBC 102514 100.0 % (26 / 26) 87.5 % (14 / 16)
stream_write_change CBC 107555 100.0 % (8 / 8) 50.0 % (1 / 2)
finish_edata CBC 168492 100.0 % (10 / 10) 100.0 % (2 / 2)
create_edata_for_relation CBC 168542 100.0 % (19 / 19)
slot_store_data GNC 168554 93.9 % (31 / 33) 65.0 % (13 / 20)
should_apply_changes_for_rel GNC 168644 50.0 % (9 / 18) 36.4 % (8 / 22)
end_replication_step CBC 169044 100.0 % (4 / 4)
begin_replication_step CBC 169107 100.0 % (8 / 8) 100.0 % (2 / 2)
apply_handle_insert GNC 201362 100.0 % (35 / 35) 92.9 % (13 / 14)
UpdateWorkerStats CBC 213166 100.0 % (8 / 8) 100.0 % (2 / 2)
TargetPrivilegesCheck CBC 240830 100.0 % (10 / 10) 83.3 % (5 / 6)
can_advance_nonremovable_xid CBC 251740 100.0 % (6 / 6) 100.0 % (4 / 4)
maybe_advance_nonremovable_xid CBC 251740 100.0 % (4 / 4) 100.0 % (2 / 2)
handle_streamed_transaction CBC 340013 86.2 % (25 / 29) 58.6 % (17 / 29)
get_transaction_apply_action CBC 341828 100.0 % (12 / 12) 100.0 % (10 / 10)
apply_dispatch GNC 352891 93.8 % (61 / 65) 81.8 % (18 / 22)
AtEOXact_LogicalRepWorkers CBC 431047 100.0 % (12 / 12) 93.8 % (15 / 16)

Generated by: LCOV version 2.0-1