LCOV - differential code coverage report
Current view: top level - src/backend/storage/buffer - bufmgr.c (source / functions) Coverage Total Hit UNC LBC UIC UBC GBC GIC GNC CBC ECB DUB DCB
Current: bed3ffbf9d952be6c7d739d068cdce44c046dfb7 vs 574581b50ac9c63dd9e4abebb731a3b67e5b50f6 Lines: 92.0 % 2418 2225 68 6 1 118 14 1 723 1487 3 33 389
Current Date: 2026-05-05 10:23:31 +0900 Functions: 96.5 % 144 139 2 3 96 43 1 12
Baseline: lcov-20260505-025707-baseline Branches: 72.0 % 1817 1309 150 8 16 334 14 397 898 70 180
Baseline Date: 2026-05-05 10:27:06 +0900 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: 91.9 % 792 728 63 1 2 1 708 17
(360..) days: 92.1 % 1624 1495 5 6 1 117 12 13 1470 3
Function coverage date bins:
(30,360] days: 94.9 % 39 37 2 37
(360..) days: 97.1 % 105 102 3 59 43
Branch coverage date bins:
(30,360] days: 73.2 % 541 396 143 2 1 392 3
(360..) days: 71.6 % 1276 913 7 8 16 332 13 5 895

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
ExtendBufferedRelShared GNC 252381 82.4 % (70 / 85) 56.5 % (52 / 92)
ExtendBufferedRelTo GNC 55973 100.0 % (36 / 36) 71.7 % (43 / 60)
IssuePendingWritebacks CBC 1208 10.7 % (3 / 28) 5.6 % (1 / 18)
buffer_stage_common GNC 1472227 88.9 % (32 / 36) 57.5 % (23 / 40)
ReleaseAndReadBuffer CBC 3646 66.7 % (12 / 18) 40.9 % (9 / 22)
LockBufferInternal GNC 117467835 78.6 % (11 / 14) 50.0 % (11 / 22)
MarkDirtyRelUnpinnedBuffers GNC 1 52.0 % (13 / 25) 38.9 % (7 / 18)
buffer_readv_report CBC 408 97.2 % (35 / 36) 71.1 % (27 / 38)
InvalidateVictimBuffer GNC 1407780 100.0 % (26 / 26) 58.3 % (14 / 24)
buffertag_comparator UBC 0 0.0 % (0 / 15) 0.0 % (0 / 10)
AbortBufferIO GNC 15 69.2 % (9 / 13) 25.0 % (3 / 12)
CheckForBufferLeaks GNC 446260 38.9 % (7 / 18) 35.7 % (5 / 14)
LockBufferForCleanup GNC 33597 94.2 % (49 / 52) 77.5 % (31 / 40)
MarkBufferDirty GNC 34972274 95.2 % (20 / 21) 66.7 % (16 / 24)
StartReadBuffersImpl GNC 84082024 96.3 % (52 / 54) 78.9 % (30 / 38)
AsyncReadBuffers GNC 1474776 100.0 % (70 / 70) 82.5 % (33 / 40)
RelationCopyStorageUsingBuffer CBC 85895 100.0 % (32 / 32) 65.0 % (13 / 20)
SharedBufferBeginSetHintBits GNC 15207755 90.9 % (20 / 22) 61.1 % (11 / 18)
BufferLockQueueSelf GNC 29572 83.3 % (10 / 12) 25.0 % (2 / 8)
CheckBufferIsPinnedOnce CBC 4632669 71.4 % (5 / 7) 40.0 % (4 / 10)
ExtendBufferedRelBy GNC 210224 100.0 % (7 / 7) 40.0 % (4 / 10)
GetVictimBuffer GNC 2241606 93.9 % (31 / 33) 80.0 % (24 / 30)
PrefetchBuffer CBC 29833 87.5 % (7 / 8) 50.0 % (6 / 12)
ProcessReadBuffersResult CBC 1471689 100.0 % (18 / 18) 72.7 % (16 / 22)
RelationGetNumberOfBlocksInFork CBC 2507276 85.7 % (6 / 7) 62.5 % (10 / 16)
WaitReadBuffers GNC 1473667 97.6 % (40 / 41) 80.0 % (24 / 30)
buffer_readv_encode_error CBC 288 100.0 % (31 / 31) 75.0 % (18 / 24)
BufferLockAcquire GNC 111095916 89.5 % (34 / 38) 66.7 % (10 / 15)
CheckReadBuffersOperation GNC 87030838 100.0 % (13 / 13) 72.2 % (13 / 18)
EvictRelUnpinnedBuffers GNC 44 88.0 % (22 / 25) 72.2 % (13 / 18)
FlushOneBuffer GNC 107 100.0 % (7 / 7) 50.0 % (5 / 10)
FlushRelationsAllBuffers GNC 5 87.9 % (29 / 33) 77.3 % (17 / 22)
InvalidateBuffer GNC 127888 96.2 % (25 / 26) 58.3 % (7 / 12)
UnlockBuffers GNC 63696 36.4 % (4 / 11) 16.7 % (1 / 6)
UnlockReleaseBuffer GNC 50896038 100.0 % (21 / 21) 72.2 % (13 / 18)
buffer_readv_complete CBC 1337520 100.0 % (41 / 41) 88.6 % (39 / 44)
BufferGetTag CBC 27813979 88.9 % (8 / 9) 50.0 % (4 / 8)
BufferIsLockedByMe GNC 107 83.3 % (5 / 6) 50.0 % (4 / 8)
BufferIsPermanent GNC 17654831 100.0 % (7 / 7) 60.0 % (6 / 10)
BufferLockWakeup GNC 27093 97.6 % (40 / 41) 89.5 % (34 / 38)
BufferSync GNC 1944 97.4 % (75 / 77) 88.2 % (30 / 34)
ConditionalLockBufferForCleanup GNC 224579 100.0 % (24 / 24) 77.8 % (14 / 18)
CreateAndCopyRelationData CBC 65910 100.0 % (14 / 14) 60.0 % (6 / 10)
ForgetPrivateRefCountEntry GNC 76120912 100.0 % (11 / 11) 60.0 % (6 / 10)
GetPrivateRefCountEntrySlow GNC 126473464 100.0 % (30 / 30) 80.0 % (16 / 20)
MarkDirtyUnpinnedBuffer GNC 1 100.0 % (10 / 10) 33.3 % (2 / 6)
MarkSharedBufferDirtyHint GNC 15320964 100.0 % (25 / 25) 85.7 % (24 / 28)
ReadRecentBuffer GNC 5045 95.2 % (20 / 21) 71.4 % (10 / 14)
ResOwnerReleaseBuffer GNC 10609 92.9 % (13 / 14) 60.0 % (6 / 10)
ReservePrivateRefCountEntry GNC 87715023 100.0 % (23 / 23) 75.0 % (12 / 16)
ScheduleBufferTagForWriteback CBC 707750 70.0 % (7 / 10) 60.0 % (6 / 10)
UnpinBufferNoOwner GNC 48217242 100.0 % (14 / 14) 66.7 % (8 / 12)
buffer_readv_complete_one GNC 1485336 100.0 % (44 / 44) 88.2 % (30 / 34)
rlocator_comparator CBC 13256335 75.0 % (12 / 16) 66.7 % (8 / 12)
BgBufferSync CBC 13948 100.0 % (65 / 65) 92.9 % (39 / 42)
BufferAlloc GNC 82709194 100.0 % (42 / 42) 81.2 % (13 / 16)
BufferGetLSNAtomic GNC 8106325 100.0 % (4 / 4) 62.5 % (5 / 8)
BufferIsDirty GNC 27900320 100.0 % (8 / 8) 75.0 % (9 / 12)
BufferLockDisownInternal GNC 112847950 85.7 % (6 / 7) 25.0 % (1 / 4)
DropRelationsAllBuffers GNC 17832 96.7 % (58 / 60) 93.5 % (43 / 46)
EvictUnpinnedBufferInternal GNC 2796 76.5 % (13 / 17) 62.5 % (5 / 8)
FindAndDropRelationBuffers GNC 872 94.4 % (17 / 18) 70.0 % (7 / 10)
IncrBufferRefCount GNC 14556593 100.0 % (10 / 10) 70.0 % (7 / 10)
MarkBufferDirtyHint GNC 440796 88.9 % (8 / 9) 50.0 % (3 / 6)
PinBuffer GNC 80752342 100.0 % (28 / 28) 87.5 % (21 / 24)
ReadBufferExtended CBC 74155377 80.0 % (4 / 5) 50.0 % (3 / 6)
ReleaseBuffer CBC 48595076 85.7 % (6 / 7) 50.0 % (3 / 6)
TerminateBufferIO GNC 2785027 95.0 % (19 / 20) 78.6 % (11 / 14)
AssertNotCatalogBufferLock GNC 45064507 88.9 % (8 / 9) 66.7 % (4 / 6)
BufferGetBlockNumber CBC 236345017 100.0 % (6 / 6) 75.0 % (6 / 8)
BufferIsLockedByMeInMode GNC 116984158 100.0 % (6 / 6) 75.0 % (6 / 8)
BufferLockConditional GNC 1752898 90.0 % (9 / 10) 66.7 % (4 / 6)
BufferLockDequeueSelf GNC 769 90.0 % (18 / 20) 83.3 % (10 / 12)
BufferLockDisown UNC 0 0.0 % (0 / 4) 0.0 % (0 / 2)
BufferSetHintBits16 GNC 15816708 100.0 % (13 / 13) 75.0 % (6 / 8)
ConditionalLockBuffer GNC 1467970 100.0 % (6 / 6) 75.0 % (6 / 8)
DropRelationBuffers GNC 804 100.0 % (32 / 32) 92.9 % (26 / 28)
EvictAllUnpinnedBuffers GNC 1 94.7 % (18 / 19) 80.0 % (8 / 10)
EvictUnpinnedBuffer CBC 205 100.0 % (7 / 7) 50.0 % (2 / 4)
GetPrivateRefCount GNC 721724984 100.0 % (7 / 7) 66.7 % (4 / 6)
MarkDirtyAllUnpinnedBuffers GNC 1 94.7 % (18 / 19) 80.0 % (8 / 10)
MarkDirtyUnpinnedBufferInternal GNC 36 90.0 % (18 / 20) 75.0 % (6 / 8)
PinBufferForBlock GNC 84621197 100.0 % (11 / 11) 90.0 % (18 / 20)
PrefetchSharedBuffer CBC 40401 100.0 % (15 / 15) 75.0 % (6 / 8)
ReadBuffer_common GNC 80120771 96.6 % (28 / 29) 90.0 % (18 / 20)
UnlockBuffer GNC 68436947 100.0 % (6 / 6) 75.0 % (6 / 8)
ZeroAndLockBuffer GNC 358133 100.0 % (24 / 24) 90.0 % (18 / 20)
local_buffer_write_error_callback UBC 0 0.0 % (0 / 6) 0.0 % (0 / 2)
AssertBufferLocksPermitCatalogRead GNC 143281422 91.7 % (11 / 12) 90.0 % (9 / 10)
AtEOXact_Buffers CBC 423297 100.0 % (5 / 5) 50.0 % (1 / 2)
BufferFinishSetHintBits GNC 305933 100.0 % (6 / 6) 87.5 % (7 / 8)
BufferLockHeldByMe GNC 29258501 80.0 % (4 / 5) 50.0 % (1 / 2)
BufferLockHeldByMeInMode GNC 139226354 80.0 % (4 / 5) 50.0 % (1 / 2)
BufferLockProcessRelease GNC 112847950 100.0 % (15 / 15) 91.7 % (11 / 12)
BufferLockReleaseSub GNC 112847950 100.0 % (7 / 7) 83.3 % (5 / 6)
BufferLockUnlock GNC 63598113 100.0 % (7 / 7) 50.0 % (1 / 2)
DebugPrintBufferRefcount GNC 72 100.0 % (13 / 13) 75.0 % (3 / 4)
DropDatabaseBuffers GNC 81 90.0 % (9 / 10) 83.3 % (5 / 6)
FlushBuffer GNC 711755 100.0 % (22 / 22) 90.0 % (9 / 10)
FlushDatabaseBuffers GNC 5 100.0 % (15 / 15) 87.5 % (7 / 8)
FlushRelationBuffers GNC 167 100.0 % (31 / 31) 93.8 % (15 / 16)
HoldingBufferPinThatDelaysRecovery CBC 4 85.7 % (6 / 7) 75.0 % (3 / 4)
InitBufferManagerAccess GNC 22963 100.0 % (8 / 8) 50.0 % (1 / 2)
LockBufHdr GNC 28281999 100.0 % (11 / 11) 83.3 % (5 / 6)
NewPrivateRefCountEntry GNC 76120912 100.0 % (10 / 10) 50.0 % (1 / 2)
PinBuffer_Locked GNC 364711 100.0 % (6 / 6) 50.0 % (1 / 2)
ReadBufferWithoutRelcache CBC 5965385 100.0 % (3 / 3) 50.0 % (1 / 2)
StartReadBuffer CBC 82295555 100.0 % (5 / 5) 50.0 % (1 / 2)
WaitIO GNC 306 100.0 % (17 / 17) 83.3 % (5 / 6)
WakePinCountWaiter GNC 63 100.0 % (10 / 10) 75.0 % (3 / 4)
WritebackContextInit CBC 3085 100.0 % (5 / 5) 50.0 % (1 / 2)
shared_buffer_write_error_callback CBC 41 100.0 % (6 / 6) 50.0 % (1 / 2)
BufferBeginSetHintBits GNC 305948 100.0 % (5 / 5) 100.0 % (2 / 2)
BufferLockAttempt GNC 112907189 100.0 % (19 / 19) 100.0 % (14 / 14)
ExtendBufferedRelCommon GNC 268393 100.0 % (6 / 6) 100.0 % (2 / 2)
GetAdditionalPinLimit CBC 3555326 100.0 % (5 / 5) 100.0 % (2 / 2)
LimitAdditionalPins CBC 252381 100.0 % (7 / 7) 100.0 % (4 / 4)
StartBufferIO GNC 1656808 100.0 % (6 / 6) 100.0 % (2 / 2)
StartSharedBufferIO GNC 2956721 100.0 % (21 / 21) 100.0 % (12 / 12)
SyncOneBuffer GNC 2376921 100.0 % (21 / 21) 100.0 % (10 / 10)
TrackBufferHit GNC 82648374 100.0 % (10 / 10) 100.0 % (12 / 12)
WaitBufHdrUnlocked GNC 385 100.0 % (8 / 8) 100.0 % (2 / 2)
ckpt_buforder_comparator CBC 3503709 100.0 % (18 / 18) 100.0 % (16 / 16)
shared_buffer_readv_complete_local CBC 1469343 100.0 % (8 / 8) 100.0 % (4 / 4)
ts_ckpt_progress_comparator GNC 286676 100.0 % (8 / 8) 100.0 % (4 / 4)
AtProcExit_Buffers CBC 22963 100.0 % (5 / 5)
CheckPointBuffers CBC 1944 100.0 % (3 / 3)
ExtendBufferedRel CBC 57426 100.0 % (4 / 4)
FlushUnlockedBuffer GNC 363023 100.0 % (6 / 6)
GetPinLimit CBC 656230 100.0 % (2 / 2)
ReadBuffer CBC 62975583 100.0 % (2 / 2)
ResOwnerPrintBuffer UNC 0 0.0 % (0 / 2)
ResOwnerPrintBufferIO UBC 0 0.0 % (0 / 3)
ResOwnerReleaseBufferIO CBC 15 100.0 % (4 / 4)
StartReadBuffers CBC 1786469 100.0 % (2 / 2)
TrackNewBufferPin GNC 76120912 100.0 % (5 / 5)
UnpinBuffer CBC 48210631 100.0 % (5 / 5)
buffer_readv_decode_error CBC 962 100.0 % (13 / 13)
local_buffer_readv_complete CBC 2884 100.0 % (2 / 2)
local_buffer_readv_stage CBC 2884 100.0 % (3 / 3)
shared_buffer_readv_complete CBC 1334636 100.0 % (2 / 2)
shared_buffer_readv_stage CBC 1469343 100.0 % (3 / 3)

Generated by: LCOV version 2.5.0-beta