LCOV - differential code coverage report
Current view: top level - src/backend/replication/logical - slotsync.c (source / functions) Coverage Total Hit UNC LBC UBC GBC GIC GNC CBC DUB DCB
Current: 380a8b2ea024c33a35e7abc8628e7c4f52f9f9f9 vs db5ed03217b9c238703df8b4b286115d6e940488 Lines: 88.7 % 558 495 9 4 50 1 1 109 384 4 63
Current Date: 2026-05-29 21:51:00 -0400 Functions: 100.0 % 31 31 18 13 7
Baseline: lcov-20260530-034037-baseline Branches: 58.7 % 390 229 24 3 134 1 50 178 31 39
Baseline Date: 2026-05-29 14:39:03 -0700 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(1,7] days: 100.0 % 8 8 8
(30,360] days: 83.9 % 186 156 9 21 101 55
(360..) days: 90.9 % 364 331 4 29 1 1 329
Function coverage date bins:
(30,360] days: 100.0 % 13 13 10 3
(360..) days: 100.0 % 18 18 8 10
Branch coverage date bins:
(30,360] days: 51.4 % 140 72 24 44 50 22
(360..) days: 62.8 % 250 157 3 90 1 156

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
HandleSlotSyncMessageInterrupt CBC 1 100.0 % (4 / 4)
ProcessSlotSyncMessage CBC 1 62.5 % (5 / 8) 25.0 % (2 / 8)
extract_slot_names GNC 1 100.0 % (6 / 6) 83.3 % (5 / 6)
slotsync_failure_callback CBC 1 88.9 % (8 / 9) 50.0 % (2 / 4)
slotsync_reread_config CBC 1 71.9 % (23 / 32) 30.8 % (8 / 26)
ReplSlotSyncWorkerMain GNC 6 96.7 % (58 / 60) 57.7 % (15 / 26)
slotsync_worker_disconnect CBC 6 100.0 % (4 / 4)
slotsync_worker_onexit CBC 6 90.9 % (10 / 11) 50.0 % (2 / 4)
reserve_wal_for_local_slot CBC 8 88.9 % (16 / 18) 50.0 % (6 / 12)
SyncReplicationSlots GNC 9 96.8 % (30 / 31) 77.8 % (14 / 18)
reset_syncing_flag GNC 9 100.0 % (7 / 7)
SlotSyncWorkerCanRestart GNC 11 100.0 % (8 / 8) 66.7 % (4 / 6)
update_and_persist_local_synced_slot GNC 13 100.0 % (10 / 10) 83.3 % (5 / 6)
check_and_set_sync_info CBC 15 58.8 % (10 / 17) 21.4 % (3 / 14)
validate_remote_info GNC 15 89.3 % (25 / 28) 50.0 % (12 / 24)
CheckAndGetDbnameFromConninfo CBC 16 100.0 % (5 / 5) 75.0 % (3 / 4)
wait_for_slot_activity CBC 19 100.0 % (8 / 8) 100.0 % (4 / 4)
ValidateSlotSyncParams GNC 22 57.1 % (8 / 14) 40.0 % (8 / 20)
drop_local_obsolete_slots GNC 27 100.0 % (14 / 14) 75.0 % (12 / 16)
get_local_synced_slots GNC 27 100.0 % (10 / 10) 87.5 % (7 / 8)
synchronize_slots GNC 27 100.0 % (9 / 9) 83.3 % (5 / 6)
fetch_remote_slots GNC 29 92.9 % (52 / 56) 60.9 % (28 / 46)
local_sync_slot_required CBC 37 100.0 % (13 / 13) 87.5 % (14 / 16)
synchronize_one_slot GNC 43 77.8 % (42 / 54) 50.0 % (11 / 22)
update_slotsync_skip_stats GNC 43 100.0 % (10 / 10) 83.3 % (5 / 6)
IsSyncingReplicationSlots CBC 72 100.0 % (2 / 2)
ShutDownSlotSync CBC 1017 81.8 % (18 / 22) 50.0 % (5 / 10)
update_synced_slots_inactive_since GNC 1017 100.0 % (15 / 15) 77.8 % (14 / 18)
SlotSyncShmemInit GNC 1248 100.0 % (5 / 5)
SlotSyncShmemRequest GNC 1251 100.0 % (3 / 3)

Generated by: LCOV version 2.5.0-beta