@@ -407,7 +407,7 @@ CompleteCachedPlan(CachedPlanSource *plansource,
407407 * one-shot plans; and we *must* skip this for transaction control
408408 * commands, because this could result in catalog accesses.
409409 */
410- plansource -> search_path = GetOverrideSearchPath (querytree_context );
410+ plansource -> search_path = GetSearchPathMatcher (querytree_context );
411411 }
412412
413413 /*
@@ -586,7 +586,7 @@ RevalidateCachedQuery(CachedPlanSource *plansource,
586586 if (plansource -> is_valid )
587587 {
588588 Assert (plansource -> search_path != NULL );
589- if (!OverrideSearchPathMatchesCurrent (plansource -> search_path ))
589+ if (!SearchPathMatchesCurrentEnvironment (plansource -> search_path ))
590590 {
591591 /* Invalidate the querytree and generic plan */
592592 plansource -> is_valid = false;
@@ -759,7 +759,7 @@ RevalidateCachedQuery(CachedPlanSource *plansource,
759759 * not generate much extra cruft either, since almost certainly the path
760760 * is already valid.)
761761 */
762- plansource -> search_path = GetOverrideSearchPath (querytree_context );
762+ plansource -> search_path = GetSearchPathMatcher (querytree_context );
763763
764764 MemoryContextSwitchTo (oldcxt );
765765
@@ -1326,7 +1326,7 @@ CachedPlanAllowsSimpleValidityCheck(CachedPlanSource *plansource,
13261326 Assert (plan -> is_valid );
13271327 Assert (plan == plansource -> gplan );
13281328 Assert (plansource -> search_path != NULL );
1329- Assert (OverrideSearchPathMatchesCurrent (plansource -> search_path ));
1329+ Assert (SearchPathMatchesCurrentEnvironment (plansource -> search_path ));
13301330
13311331 /* We don't support oneshot plans here. */
13321332 if (plansource -> is_oneshot )
@@ -1449,7 +1449,7 @@ CachedPlanIsSimplyValid(CachedPlanSource *plansource, CachedPlan *plan,
14491449
14501450 /* Is the search_path still the same as when we made it? */
14511451 Assert (plansource -> search_path != NULL );
1452- if (!OverrideSearchPathMatchesCurrent (plansource -> search_path ))
1452+ if (!SearchPathMatchesCurrentEnvironment (plansource -> search_path ))
14531453 return false;
14541454
14551455 /* It's still good. Bump refcount if requested. */
@@ -1565,7 +1565,7 @@ CopyCachedPlan(CachedPlanSource *plansource)
15651565 newsource -> relationOids = copyObject (plansource -> relationOids );
15661566 newsource -> invalItems = copyObject (plansource -> invalItems );
15671567 if (plansource -> search_path )
1568- newsource -> search_path = CopyOverrideSearchPath (plansource -> search_path );
1568+ newsource -> search_path = CopySearchPathMatcher (plansource -> search_path );
15691569 newsource -> query_context = querytree_context ;
15701570 newsource -> rewriteRoleId = plansource -> rewriteRoleId ;
15711571 newsource -> rewriteRowSecurity = plansource -> rewriteRowSecurity ;
0 commit comments