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: 380a8b2ea024c33a35e7abc8628e7c4f52f9f9f9 vs db5ed03217b9c238703df8b4b286115d6e940488 Lines: 92.6 % 1881 1742 33 106 1 279 1462 5 2 68
Current Date: 2026-05-29 21:51:00 -0400 Functions: 100.0 % 98 98 51 47 4
Baseline: lcov-20260530-034037-baseline Branches: 67.6 % 1117 755 64 2 27 269 1 11 149 594 40 33
Baseline Date: 2026-05-29 14:39:03 -0700 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 57.1 % 7 4 3 4
(30,360] days: 89.5 % 313 280 33 279 1
(360..) days: 93.4 % 1561 1458 103 1 1457 5
Function coverage date bins:
(30,360] days: 100.0 % 20 20 20
(360..) days: 100.0 % 78 78 31 47
Branch coverage date bins:
(7,30] days: 25.0 % 12 3 9 3
(30,360] days: 70.0 % 213 149 64 149
(360..) days: 67.6 % 892 603 2 27 260 1 11 591

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 GNC 1 85.7 % (6 / 7) 25.0 % (1 / 4)
resume_conflict_info_retention GNC 1 80.0 % (4 / 5) 50.0 % (3 / 6)
stop_conflict_info_retention GNC 1 90.0 % (9 / 10) 50.0 % (4 / 8)
update_retention_status GNC 2 90.9 % (10 / 11) 50.0 % (1 / 2)
DisableSubscriptionAndExit GNC 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)
apply_handle_origin CBC 7 83.3 % (5 / 6) 40.0 % (4 / 10)
FindDeletedTupleInLocalRel GNC 11 50.0 % (10 / 20) 50.0 % (8 / 16)
stream_abort_internal CBC 14 100.0 % (26 / 26) 100.0 % (8 / 8)
apply_handle_stream_prepare GNC 15 90.6 % (48 / 53) 51.9 % (14 / 27)
apply_handle_prepare GNC 16 94.1 % (16 / 17) 25.0 % (1 / 4)
apply_handle_begin_prepare CBC 17 90.9 % (10 / 11) 33.3 % (2 / 6)
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 GNC 26 100.0 % (9 / 9) 50.0 % (1 / 2)
stop_skipping_changes CBC 30 100.0 % (5 / 5) 75.0 % (3 / 4)
apply_spooled_messages CBC 31 97.7 % (43 / 44) 68.2 % (15 / 22)
stream_cleanup_files CBC 31 100.0 % (6 / 6)
reset_retention_data_fields GNC 35 100.0 % (10 / 10)
apply_handle_stream_abort CBC 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 61 90.5 % (38 / 42) 56.5 % (13 / 23)
adjust_xid_advance_interval GNC 68 92.9 % (13 / 14) 85.7 % (12 / 14)
apply_handle_tuple_routing GNC 96 92.3 % (96 / 104) 62.5 % (30 / 48)
wait_for_local_flush GNC 103 93.5 % (29 / 31) 80.0 % (24 / 30)
get_candidate_xid GNC 265 100.0 % (14 / 14) 87.5 % (7 / 8)
LogicalRepWorkersWakeupAtCommit CBC 280 100.0 % (6 / 6)
run_apply_worker GNC 288 91.9 % (34 / 37) 73.1 % (19 / 26)
subxact_info_read GNC 344 100.0 % (17 / 17) 60.0 % (6 / 10)
ApplyWorkerMain CBC 360 85.7 % (6 / 7)
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)
subxact_info_write CBC 372 100.0 % (15 / 15) 83.3 % (5 / 6)
cleanup_subxact_info GNC 376 100.0 % (8 / 8) 100.0 % (2 / 2)
stream_close_file CBC 393 100.0 % (5 / 5) 50.0 % (1 / 2)
changes_filename CBC 438 100.0 % (3 / 3)
LogicalRepApplyLoop GNC 446 93.0 % (106 / 114) 75.8 % (50 / 66)
set_stream_options CBC 446 100.0 % (22 / 22) 50.0 % (7 / 14)
start_apply GNC 446 83.3 % (10 / 12) 66.7 % (4 / 6)
set_apply_error_context_origin CBC 458 100.0 % (3 / 3)
apply_handle_commit GNC 461 88.9 % (8 / 9) 25.0 % (1 / 4)
apply_handle_relation CBC 494 100.0 % (6 / 6) 100.0 % (2 / 2)
apply_handle_commit_internal GNC 501 89.5 % (17 / 19) 87.5 % (7 / 8)
apply_handle_begin CBC 520 100.0 % (9 / 9) 50.0 % (1 / 2)
on_exit_clear_xact_state GNC 521 100.0 % (3 / 3)
clear_subscription_skip_lsn GNC 556 93.3 % (28 / 30) 55.6 % (10 / 18)
maybe_start_skipping_changes GNC 564 100.0 % (8 / 8) 64.3 % (9 / 14)
set_wal_receiver_timeout GNC 568 77.8 % (7 / 9) 37.5 % (3 / 8)
store_flush_position GNC 571 100.0 % (9 / 9) 100.0 % (2 / 2)
SetupApplyOrSyncWorker GNC 582 100.0 % (12 / 12) 87.5 % (7 / 8)
InitializeLogRepWorker GNC 594 90.0 % (36 / 40) 60.0 % (18 / 30)
subxact_filename CBC 747 100.0 % (3 / 3)
apply_handle_stream_stop CBC 842 87.9 % (29 / 33) 57.9 % (11 / 19)
apply_handle_stream_start GNC 843 91.1 % (41 / 45) 61.3 % (19 / 31)
ReplicationOriginNameForLogicalRep CBC 1450 100.0 % (5 / 5) 100.0 % (2 / 2)
reset_apply_error_context_info CBC 1453 100.0 % (6 / 6)
IsLogicalParallelApplyWorker CBC 2019 100.0 % (2 / 2) 75.0 % (3 / 4)
IsLogicalWorker CBC 2770 100.0 % (2 / 2)
request_publisher_status GNC 2783 100.0 % (12 / 12) 100.0 % (4 / 4)
should_stop_conflict_info_retention GNC 2874 90.9 % (10 / 11) 66.7 % (8 / 12)
set_apply_error_context_xact CBC 2974 100.0 % (4 / 4)
apply_error_callback GNC 3564 64.5 % (20 / 31) 68.8 % (11 / 16)
wait_for_publisher_status GNC 5121 83.3 % (10 / 12) 87.5 % (7 / 8)
maybe_reread_subscription GNC 6217 84.8 % (39 / 46) 63.8 % (37 / 58)
process_rdt_phase_transition GNC 8274 95.2 % (20 / 21) 85.7 % (6 / 7)
send_feedback GNC 20821 94.7 % (36 / 38) 90.0 % (27 / 30)
get_flush_position GNC 20831 100.0 % (16 / 16) 83.3 % (5 / 6)
slot_modify_data CBC 31930 94.4 % (34 / 36) 59.1 % (13 / 22)
apply_handle_update_internal GNC 31934 100.0 % (35 / 35) 75.0 % (9 / 12)
apply_handle_delete_internal GNC 40327 100.0 % (20 / 20) 91.7 % (11 / 12)
apply_handle_update GNC 66172 90.7 % (39 / 43) 78.6 % (22 / 28)
FindReplTupleInLocalRel CBC 72274 100.0 % (12 / 12) 75.0 % (9 / 12)
check_relation_updatable CBC 72305 62.5 % (5 / 8) 30.0 % (3 / 10)
apply_handle_delete CBC 81942 91.4 % (32 / 35) 78.6 % (11 / 14)
slot_fill_defaults GNC 96227 100.0 % (25 / 25) 83.3 % (15 / 18)
apply_handle_insert_internal CBC 96228 100.0 % (8 / 8) 75.0 % (6 / 8)
subxact_info_add GNC 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 168456 100.0 % (9 / 9) 100.0 % (2 / 2)
create_edata_for_relation GNC 168501 100.0 % (19 / 19)
slot_store_data CBC 168515 93.9 % (31 / 33) 65.0 % (13 / 20)
should_apply_changes_for_rel GNC 168591 50.0 % (9 / 18) 36.4 % (8 / 22)
end_replication_step CBC 168995 100.0 % (4 / 4)
begin_replication_step CBC 169055 100.0 % (8 / 8) 100.0 % (2 / 2)
apply_handle_insert CBC 206309 100.0 % (35 / 35) 92.9 % (13 / 14)
UpdateWorkerStats CBC 210127 100.0 % (8 / 8) 100.0 % (2 / 2)
can_advance_nonremovable_xid GNC 228945 100.0 % (6 / 6) 100.0 % (4 / 4)
maybe_advance_nonremovable_xid GNC 228945 100.0 % (4 / 4) 100.0 % (2 / 2)
TargetPrivilegesCheck CBC 240786 100.0 % (10 / 10) 83.3 % (5 / 6)
handle_streamed_transaction CBC 344951 86.2 % (25 / 29) 58.6 % (17 / 29)
get_transaction_apply_action CBC 346750 100.0 % (12 / 12) 100.0 % (10 / 10)
apply_dispatch CBC 357802 93.8 % (61 / 65) 81.8 % (18 / 22)
AtEOXact_LogicalRepWorkers CBC 425495 100.0 % (12 / 12) 93.8 % (15 / 16)

Generated by: LCOV version 2.5.0-beta