@@ -407,7 +407,7 @@ CompleteCachedPlan(CachedPlanSource *plansource,
407
407
* one-shot plans; and we *must* skip this for transaction control
408
408
* commands, because this could result in catalog accesses.
409
409
*/
410
- plansource -> search_path = GetOverrideSearchPath (querytree_context );
410
+ plansource -> search_path = GetSearchPathMatcher (querytree_context );
411
411
}
412
412
413
413
/*
@@ -586,7 +586,7 @@ RevalidateCachedQuery(CachedPlanSource *plansource,
586
586
if (plansource -> is_valid )
587
587
{
588
588
Assert (plansource -> search_path != NULL );
589
- if (!OverrideSearchPathMatchesCurrent (plansource -> search_path ))
589
+ if (!SearchPathMatchesCurrentEnvironment (plansource -> search_path ))
590
590
{
591
591
/* Invalidate the querytree and generic plan */
592
592
plansource -> is_valid = false;
@@ -759,7 +759,7 @@ RevalidateCachedQuery(CachedPlanSource *plansource,
759
759
* not generate much extra cruft either, since almost certainly the path
760
760
* is already valid.)
761
761
*/
762
- plansource -> search_path = GetOverrideSearchPath (querytree_context );
762
+ plansource -> search_path = GetSearchPathMatcher (querytree_context );
763
763
764
764
MemoryContextSwitchTo (oldcxt );
765
765
@@ -1326,7 +1326,7 @@ CachedPlanAllowsSimpleValidityCheck(CachedPlanSource *plansource,
1326
1326
Assert (plan -> is_valid );
1327
1327
Assert (plan == plansource -> gplan );
1328
1328
Assert (plansource -> search_path != NULL );
1329
- Assert (OverrideSearchPathMatchesCurrent (plansource -> search_path ));
1329
+ Assert (SearchPathMatchesCurrentEnvironment (plansource -> search_path ));
1330
1330
1331
1331
/* We don't support oneshot plans here. */
1332
1332
if (plansource -> is_oneshot )
@@ -1449,7 +1449,7 @@ CachedPlanIsSimplyValid(CachedPlanSource *plansource, CachedPlan *plan,
1449
1449
1450
1450
/* Is the search_path still the same as when we made it? */
1451
1451
Assert (plansource -> search_path != NULL );
1452
- if (!OverrideSearchPathMatchesCurrent (plansource -> search_path ))
1452
+ if (!SearchPathMatchesCurrentEnvironment (plansource -> search_path ))
1453
1453
return false;
1454
1454
1455
1455
/* It's still good. Bump refcount if requested. */
@@ -1565,7 +1565,7 @@ CopyCachedPlan(CachedPlanSource *plansource)
1565
1565
newsource -> relationOids = copyObject (plansource -> relationOids );
1566
1566
newsource -> invalItems = copyObject (plansource -> invalItems );
1567
1567
if (plansource -> search_path )
1568
- newsource -> search_path = CopyOverrideSearchPath (plansource -> search_path );
1568
+ newsource -> search_path = CopySearchPathMatcher (plansource -> search_path );
1569
1569
newsource -> query_context = querytree_context ;
1570
1570
newsource -> rewriteRoleId = plansource -> rewriteRoleId ;
1571
1571
newsource -> rewriteRowSecurity = plansource -> rewriteRowSecurity ;
0 commit comments