LCOV - differential code coverage report
Current view: top level - src/backend/replication/logical - slotsync.c (source / functions) Coverage Total Hit UNC UBC GBC GNC CBC DUB DCB
Current: 806555e3000d0b0e0c536c1dc65548128d457d86 vs 1d325ad99cb2dec0e8b45ba36909ee0a497d2a57 Lines: 88.3 % 554 489 22 43 7 108 374 6 48
Current Date: 2025-12-17 08:58:58 +0900 Functions: 100.0 % 30 30 17 13 6
Baseline: lcov-20251217-005640-baseline Branches: 59.0 % 422 249 50 123 7 54 188
Baseline Date: 2025-12-16 12:57:12 -0800 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(1,7] days: 86.8 % 91 79 12 79
(7,30] days: 66.7 % 30 20 8 2 18 2
(30,360] days: 93.1 % 29 27 2 1 11 15
(360..) days: 89.9 % 404 363 2 39 6 357
Function coverage date bins:
(1,7] days: 100.0 % 6 6 6
(7,30] days: 100.0 % 2 2 2
(30,360] days: 100.0 % 2 2 2
(360..) days: 100.0 % 20 20 7 13
Branch coverage date bins:
(1,7] days: 52.9 % 68 36 32 36
(7,30] days: 50.0 % 26 13 13 11 2
(30,360] days: 60.7 % 28 17 5 6 7 10
(360..) days: 61.0 % 300 183 117 7 176

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
CheckAndGetDbnameFromConninfo CBC 14 100.0 % (5 / 5) 75.0 % (3 / 4)
IsSyncingReplicationSlots CBC 71 100.0 % (2 / 2)
ReplSlotSyncWorkerMain GNC 4 89.3 % (50 / 56) 45.0 % (9 / 20)
ShutDownSlotSync GNC 870 81.8 % (18 / 22) 50.0 % (7 / 14)
SlotSyncShmemInit CBC 1069 100.0 % (9 / 9) 50.0 % (1 / 2)
SlotSyncShmemSize CBC 3055 100.0 % (2 / 2)
SlotSyncWorkerCanRestart GNC 6 100.0 % (8 / 8) 66.7 % (4 / 6)
SyncReplicationSlots GNC 9 100.0 % (26 / 26) 85.7 % (12 / 14)
ValidateSlotSyncParams CBC 17 57.1 % (8 / 14) 40.0 % (8 / 20)
check_and_set_sync_info GNC 13 81.8 % (9 / 11) 37.5 % (3 / 8)
drop_local_obsolete_slots CBC 25 100.0 % (14 / 14) 72.2 % (13 / 18)
extract_slot_names GNC 1 100.0 % (6 / 6) 83.3 % (5 / 6)
fetch_remote_slots GNC 25 90.9 % (50 / 55) 56.5 % (26 / 46)
get_local_synced_slots CBC 25 100.0 % (10 / 10) 87.5 % (7 / 8)
local_sync_slot_required CBC 41 100.0 % (13 / 13) 83.3 % (15 / 18)
reserve_wal_for_local_slot GNC 7 94.4 % (17 / 18) 66.7 % (8 / 12)
reset_syncing_flag GNC 9 100.0 % (7 / 7) 50.0 % (1 / 2)
slotsync_failure_callback CBC 1 88.9 % (8 / 9) 50.0 % (2 / 4)
slotsync_reread_config GNC 1 71.9 % (23 / 32) 30.8 % (8 / 26)
slotsync_worker_disconnect CBC 4 100.0 % (4 / 4)
slotsync_worker_onexit CBC 4 90.9 % (10 / 11) 50.0 % (3 / 6)
synchronize_one_slot GNC 45 68.3 % (43 / 63) 38.1 % (16 / 42)
synchronize_slots GNC 25 100.0 % (9 / 9) 83.3 % (5 / 6)
update_and_persist_local_synced_slot GNC 9 76.5 % (13 / 17) 41.7 % (5 / 12)
update_local_synced_slot GNC 45 96.7 % (58 / 60) 71.0 % (44 / 62)
update_slotsync_skip_stats GNC 45 100.0 % (10 / 10) 75.0 % (6 / 8)
update_synced_slots_inactive_since GNC 870 100.0 % (15 / 15) 77.8 % (14 / 18)
validate_remote_info CBC 13 89.3 % (25 / 28) 50.0 % (12 / 24)
wait_for_slot_activity CBC 17 100.0 % (8 / 8) 100.0 % (4 / 4)

Generated by: LCOV version 2.4-beta