LCOV - differential code coverage report
Current view: top level - src/backend/utils/cache - plancache.c (source / functions) Coverage Total Hit UBC GBC CBC
Current: 603a3335f2b60b2c798da5c627b3bb288b92a7bd vs e395fbd32a07557de4ac98088928c1749d4845d8 Lines: 88.8 % 741 658 83 658
Current Date: 2026-07-25 17:13:00 -0400 Functions: 97.5 % 40 39 1 39
Baseline: lcov-20260726-baseline Branches: 74.7 % 566 423 143 1 422
Baseline Date: 2026-07-25 19:16:42 +0200 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 83.3 % 12 10 2 10
(360..) days: 88.9 % 729 648 81 648
Function coverage date bins:
(30,360] days: 100.0 % 3 3 3
(360..) days: 97.3 % 37 36 1 36
Branch coverage date bins:
(30,360] days: 100.0 % 2 2 2
(360..) days: 74.6 % 564 421 143 1 420

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
CachedPlanAllowsSimpleValidityCheck CBC 19172 77.1 % (27 / 35) 61.1 % (33 / 54)
CopyCachedPlan UBC 0 0.0 % (0 / 53) 0.0 % (0 / 14)
CachedPlanSetParentContext CBC 20330 66.7 % (8 / 12) 31.2 % (5 / 16)
CheckCachedPlan CBC 142451 86.4 % (19 / 22) 61.5 % (16 / 26)
RevalidateCachedQuery CBC 179456 98.7 % (74 / 75) 83.3 % (50 / 60)
GetCachedPlan CBC 170850 97.6 % (40 / 41) 78.9 % (30 / 38)
PlanCacheRelCallback CBC 2222812 96.8 % (30 / 31) 81.8 % (36 / 44)
PlanCacheObjectCallback CBC 847850 100.0 % (47 / 47) 90.0 % (63 / 70)
SaveCachedPlan CBC 26400 90.9 % (10 / 11) 40.0 % (4 / 10)
CachedPlanIsSimplyValid CBC 221871 100.0 % (15 / 15) 72.2 % (13 / 18)
QueryListGetPrimaryStmt CBC 8797 83.3 % (5 / 6) 50.0 % (4 / 8)
ResetPlanCache CBC 51777 100.0 % (16 / 16) 77.8 % (14 / 18)
AcquireExecutorLocks CBC 110468 94.4 % (17 / 18) 87.5 % (21 / 24)
BuildCachedPlan CBC 60370 97.9 % (47 / 48) 90.0 % (27 / 30)
BuildingPlanRequiresSnapshot CBC 521 50.0 % (3 / 6) 25.0 % (1 / 4)
CachedPlanGetTargetList CBC 8606 87.5 % (7 / 8) 50.0 % (3 / 6)
PlanCacheComputeResultDesc CBC 50909 100.0 % (16 / 16) 66.7 % (6 / 9)
ReleaseCachedPlan CBC 234126 100.0 % (12 / 12) 75.0 % (9 / 12)
choose_custom_plan CBC 202730 85.7 % (18 / 21) 83.3 % (15 / 18)
CompleteCachedPlan CBC 45998 100.0 % (35 / 35) 85.7 % (12 / 14)
DropCachedPlan CBC 8786 100.0 % (10 / 10) 66.7 % (4 / 6)
ScanQueryForLocks CBC 167290 96.0 % (24 / 25) 92.0 % (23 / 25)
AcquirePlannerLocks CBC 149167 100.0 % (10 / 10) 90.0 % (9 / 10)
CachedPlanIsValid CBC 1455 100.0 % (3 / 3) 50.0 % (1 / 2)
CreateCachedPlan CBC 33920 100.0 % (41 / 41) 50.0 % (1 / 2)
CreateOneShotCachedPlan CBC 12173 100.0 % (37 / 37) 50.0 % (1 / 2)
FreeCachedExpression CBC 50 100.0 % (5 / 5) 50.0 % (1 / 2)
ReleaseGenericPlan CBC 72137 100.0 % (7 / 7) 75.0 % (3 / 4)
SetPostRewriteHook CBC 1434 100.0 % (5 / 5) 50.0 % (1 / 2)
cached_plan_cost CBC 60226 100.0 % (11 / 11) 90.0 % (9 / 10)
ScanQueryWalker CBC 221537 100.0 % (7 / 7) 100.0 % (4 / 4)
StmtPlanRequiresRevalidation CBC 23432468 100.0 % (6 / 6) 100.0 % (4 / 4)
CreateCachedPlanForQuery CBC 549 100.0 % (6 / 6)
GetCachedExpression CBC 267 100.0 % (15 / 15)
InitPlanCache CBC 18576 100.0 % (10 / 10)
PlanCacheSysCallback CBC 51143 100.0 % (3 / 3)
ReleaseAllPlanCacheRefsInOwner CBC 10255 100.0 % (3 / 3)
ResOwnerReleaseCachedPlan CBC 60240 100.0 % (3 / 3)
ResourceOwnerForgetPlanCacheRef CBC 121440 100.0 % (3 / 3)
ResourceOwnerRememberPlanCacheRef CBC 181680 100.0 % (3 / 3)

Generated by: LCOV version 2.0-1