LCOV - code coverage report
Current view: top level - src/backend/access/transam - xlog.c (source / functions) Hit Total Coverage
Test: PostgreSQL 19devel Lines: 2208 2488 88.7 %
Date: 2026-02-07 23:19:11 Functions: 120 123 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
AdvanceXLInsertBuffer 5012396
BootStrapXLOG 102
CalculateCheckpointSegments 16430
CheckPointGuts 3580
CheckRequiredParameterValues 524
CheckXLogRemoved 253170
CleanupAfterArchiveRecovery 108
CleanupBackupHistory 310
CopyXLogRecordToWAL 30781202
CreateCheckPoint 3182
CreateEndOfRecoveryRecord 94
CreateOverwriteContrecordRecord 24
CreateRestartPoint 1236
DataChecksumsEnabled 20429618
GetActiveWalLevelOnStandby 0
GetDefaultCharSignedness 6
GetFakeLSNForUnloggedRel 66
GetFlushRecPtr 522414
GetFullPageWriteInfo 31097106
GetInsertRecPtr 14296
GetLastImportantRecPtr 3304
GetLastSegSwitchData 0
GetMockAuthenticationNonce 2
GetOldestRestartPoint 792
GetRecoveryState 75386
GetRedoRecPtr 603414
GetSystemIdentifier 2932
GetWALAvailability 1240
GetWALInsertionTimeLine 235998
GetWALInsertionTimeLineIfSet 2
GetXLogBuffer 35853102
GetXLogInsertRecPtr 4056
GetXLogWriteRecPtr 14410
InitControlFile 102
InitializeWalConsistencyChecking 1970
InstallXLogFileSegment 6034
IsInstallXLogFileSegmentActive 0
KeepLogSeg 4766
LocalProcessControlFile 1990
LocalSetXLogInsertAllowed 1918
LogCheckpointEnd 3580
LogCheckpointStart 2984
PerformRecoveryXLogAction 324
PreallocXlogFiles 4126
ReachedEndOfBackup 160
ReadControlFile 2092
RecoveryInProgress 163402114
RecoveryRestartPoint 1456
RemoveNonParentXlogFiles 134
RemoveOldXlogFiles 3580
RemoveTempXlogFiles 372
RemoveXlogFile 4942
RequestXLogSwitch 1600
ReserveXLogInsertLocation 30779722
ReserveXLogSwitch 1598
ResetInstallXLogFileSegmentActive 2312
SetInstallXLogFileSegmentActive 2390
SetWalWriterSleeping 1078
ShutdownXLOG 1372
StartupXLOG 1990
SwitchIntoArchiveRecovery 4
UpdateCheckPointDistanceEstimate 3580
UpdateControlFile 18992
UpdateFullPageWrites 3136
UpdateLastRemovedPtr 4910
UpdateMinRecoveryPoint 222592
ValidateXLOGDirectoryStructure 1990
WALInsertLockAcquire 30793866
WALInsertLockAcquireExclusive 8936
WALInsertLockRelease 30802802
WALInsertLockUpdateInsertingAt 5002338
WALReadFromBuffers 213616
WaitXLogInsertionsToFinish 4692504
WriteControlFile 102
XLOGChooseNumBuffers 2276
XLOGShmemInit 2280
XLOGShmemSize 6534
XLOGfileslop 3580
XLogBackgroundFlush 37454
XLogBytePosToEndRecPtr 31711662
XLogBytePosToRecPtr 61567774
XLogCheckpointNeeded 9526
XLogFileClose 12936
XLogFileCopy 88
XLogFileInit 29482
XLogFileInitInternal 29964
XLogFileOpen 176
XLogFlush 1416146
XLogGetLastRemovedSegno 2444
XLogGetOldestSegno 14
XLogGetReplicationSlotMinimumLSN 4780
XLogInitNewTimeline 108
XLogInsertAllowed 81698102
XLogInsertRecord 30797300
XLogNeedsFlush 17415784
XLogPutNextOid 1266
XLogRecPtrToBytePos 5200
XLogReportParameters 1860
XLogRestorePoint 6
XLogSetAsyncXactLSN 99822
XLogSetReplicationSlotMinimumLSN 60632
XLogShutdownWalRcv 1980
XLogWrite 4398328
assign_checkpoint_completion_target 2354
assign_max_wal_size 11984
assign_wal_consistency_checking 4292
assign_wal_sync_method 2354
check_wal_buffers 4630
check_wal_consistency_checking 4294
check_wal_segment_size 4550
do_pg_abort_backup 16
do_pg_backup_start 340
do_pg_backup_stop 326
get_backup_status 380
get_sync_bit 33094
issue_xlog_fsync 337024
register_persistent_abort_backup_handler 8
show_archive_command 3472
show_effective_wal_level 3536
show_in_hot_standby 31592
str_time 1766
update_checkpoint_display 7160
xlog_redo 90888

Generated by: LCOV version 1.16