LCOV - code coverage report
Current view: top level - src/backend/access/transam - xlog.c (source / functions) Coverage Total Hit
Test: PostgreSQL 19devel Lines: 88.8 % 2674 2375
Test Date: 2026-04-07 14:16:30 Functions: 96.4 % 137 132
Legend: Lines:     hit not hit

Function Name Sort by function name Hit count Sort by function hit count
AdvanceXLInsertBuffer 2708701
BootStrapXLOG 57
CalculateCheckpointSegments 9743
CheckPointGuts 1931
CheckRequiredParameterValues 265
CheckXLogRemoved 127743
CheckpointFlagsString 3194
CleanupAfterArchiveRecovery 55
CleanupBackupHistory 162
CopyXLogRecordToWAL 24097472
CreateCheckPoint 1725
CreateEndOfRecoveryRecord 48
CreateOverwriteContrecordRecord 10
CreateRestartPoint 614
DataChecksumsInProgressOn 167
DataChecksumsNeedVerify 2641443
DataChecksumsNeedWrite 852354
GetActiveWalLevelOnStandby 0
GetDefaultCharSignedness 89903
GetFakeLSNForUnloggedRel 201460
GetFlushRecPtr 215850
GetFullPageWriteInfo 24314649
GetInsertRecPtr 7263
GetLastImportantRecPtr 1774
GetLastSegSwitchData 0
GetMockAuthenticationNonce 2
GetOldestRestartPoint 391
GetRecoveryState 10164
GetRedoRecPtr 383179
GetSystemIdentifier 1564
GetWALAvailability 628
GetWALInsertionTimeLine 118516
GetWALInsertionTimeLineIfSet 1
GetXLogBuffer 26846737
GetXLogInsertEndRecPtr 117174
GetXLogInsertRecPtr 2135
GetXLogWriteRecPtr 10554
InitControlFile 57
InitLocalDataChecksumState 24658
InitializeWalConsistencyChecking 1058
InstallXLogFileSegment 3236
IsInstallXLogFileSegmentActive 0
KeepLogSeg 2537
LocalProcessControlFile 1076
LocalSetXLogInsertAllowed 1037
LogCheckpointEnd 1931
LogCheckpointStart 1597
PerformRecoveryXLogAction 163
PreallocXlogFiles 2209
ReachedEndOfBackup 82
ReadControlFile 1133
RecoveryInProgress 96982476
RecoveryRestartPoint 743
RemoveNonParentXlogFiles 67
RemoveOldXlogFiles 1931
RemoveTempXlogFiles 188
RemoveXlogFile 2796
RequestXLogSwitch 814
ReserveXLogInsertLocation 24096721
ReserveXLogSwitch 814
ResetInstallXLogFileSegmentActive 1222
SetDataChecksumsOff 8
SetDataChecksumsOn 6
SetDataChecksumsOnInProgress 8
SetInstallXLogFileSegmentActive 1262
SetLocalDataChecksumState 27253
SetWalWriterSleeping 612
ShutdownXLOG 759
StartupXLOG 1074
SwitchIntoArchiveRecovery 1
UpdateCheckPointDistanceEstimate 1931
UpdateControlFile 10163
UpdateFullPageWrites 1720
UpdateLastRemovedPtr 2779
UpdateMinRecoveryPoint 122360
ValidateXLOGDirectoryStructure 1074
WALInsertLockAcquire 24105526
WALInsertLockAcquireExclusive 4747
WALInsertLockRelease 24110273
WALInsertLockUpdateInsertingAt 2703844
WALReadFromBuffers 106594
WaitXLogInsertionsToFinish 2507031
WriteControlFile 57
XLOGChooseNumBuffers 1229
XLOGShmemAttach 0
XLOGShmemInit 1231
XLOGShmemRequest 1234
XLOGfileslop 1931
XLogAssignLSN 112021
XLogBackgroundFlush 15712
XLogBytePosToEndRecPtr 24726693
XLogBytePosToRecPtr 48197808
XLogCheckpointNeeded 5104
XLogChecksums 24
XLogFileClose 7125
XLogFileCopy 43
XLogFileInit 16081
XLogFileInitInternal 16306
XLogFileOpen 129
XLogFlush 865060
XLogGetLastRemovedSegno 1264
XLogGetOldestSegno 7
XLogGetReplicationSlotMinimumLSN 2545
XLogInitNewTimeline 55
XLogInsertAllowed 65985211
XLogInsertRecord 24106330
XLogNeedsFlush 16187133
XLogPutNextOid 690
XLogRecPtrToBytePos 2765
XLogReportParameters 1007
XLogRestorePoint 3
XLogSetAsyncXactLSN 61591
XLogSetReplicationSlotMinimumLSN 42558
XLogShutdownWalRcv 1068
XLogWrite 2350077
assign_checkpoint_completion_target 1275
assign_max_wal_size 7335
assign_wal_consistency_checking 2262
assign_wal_sync_method 1275
check_wal_buffers 2504
check_wal_consistency_checking 2263
check_wal_segment_size 2466
do_pg_abort_backup 9
do_pg_backup_start 177
do_pg_backup_stop 170
get_backup_status 198
get_sync_bit 17816
issue_xlog_fsync 208090
register_persistent_abort_backup_handler 5
show_archive_command 1951
show_data_checksums 0
show_effective_wal_level 1984
show_in_hot_standby 17136
str_time 950
update_checkpoint_display 3862
xlog2_redo 4
xlog_redo 114398

Generated by: LCOV version 2.0-1