diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-06-09 18:02:36 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-06-09 18:02:36 -0400 |
commit | 4bc424b968058c7f0aa685821d7039e86faac99c (patch) | |
tree | a4e245ae67bd11edb3926ff5fb3b0223438ac283 /src/backend/utils/cache | |
parent | 9164deea2f4ac90ee5e008ff41fc5ad4423887b2 (diff) | |
download | postgresql-4bc424b968058c7f0aa685821d7039e86faac99c.tar.gz postgresql-4bc424b968058c7f0aa685821d7039e86faac99c.zip |
pgindent run for 9.6
Diffstat (limited to 'src/backend/utils/cache')
-rw-r--r-- | src/backend/utils/cache/lsyscache.c | 6 | ||||
-rw-r--r-- | src/backend/utils/cache/plancache.c | 25 | ||||
-rw-r--r-- | src/backend/utils/cache/relcache.c | 6 |
3 files changed, 19 insertions, 18 deletions
diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c index cb26d79afb0..13ae6add036 100644 --- a/src/backend/utils/cache/lsyscache.c +++ b/src/backend/utils/cache/lsyscache.c @@ -1819,9 +1819,9 @@ get_rel_tablespace(Oid relid) char get_rel_persistence(Oid relid) { - HeapTuple tp; - Form_pg_class reltup; - char result; + HeapTuple tp; + Form_pg_class reltup; + char result; tp = SearchSysCache1(RELOID, ObjectIdGetDatum(relid)); if (!HeapTupleIsValid(tp)) diff --git a/src/backend/utils/cache/plancache.c b/src/backend/utils/cache/plancache.c index 8fd9f2b573f..005e4b7f1c3 100644 --- a/src/backend/utils/cache/plancache.c +++ b/src/backend/utils/cache/plancache.c @@ -106,7 +106,7 @@ static void PlanCacheRelCallback(Datum arg, Oid relid); static void PlanCacheFuncCallback(Datum arg, int cacheid, uint32 hashvalue); static void PlanCacheSysCallback(Datum arg, int cacheid, uint32 hashvalue); static void PlanCacheUserMappingCallback(Datum arg, int cacheid, - uint32 hashvalue); + uint32 hashvalue); /* @@ -610,10 +610,11 @@ RevalidateCachedQuery(CachedPlanSource *plansource) plansource->is_valid = false; /* - * If we have a join pushed down to the foreign server and the current user - * is different from the one for which the plan was created, invalidate the - * generic plan since user mapping for the new user might make the join - * unsafe to push down, or change which user mapping is used. + * If we have a join pushed down to the foreign server and the current + * user is different from the one for which the plan was created, + * invalidate the generic plan since user mapping for the new user might + * make the join unsafe to push down, or change which user mapping is + * used. */ if (plansource->is_valid && plansource->gplan && @@ -901,7 +902,7 @@ BuildCachedPlan(CachedPlanSource *plansource, List *qlist, bool spi_pushed; MemoryContext plan_context; MemoryContext oldcxt = CurrentMemoryContext; - ListCell *lc; + ListCell *lc; /* * Normally the querytree should be valid already, but if it's not, @@ -1016,7 +1017,7 @@ BuildCachedPlan(CachedPlanSource *plansource, List *qlist, plan->has_foreign_join = false; foreach(lc, plist) { - PlannedStmt *plan_stmt = (PlannedStmt *) lfirst(lc); + PlannedStmt *plan_stmt = (PlannedStmt *) lfirst(lc); if (IsA(plan_stmt, PlannedStmt)) plan->has_foreign_join = @@ -1888,9 +1889,9 @@ PlanCacheSysCallback(Datum arg, int cacheid, uint32 hashvalue) /* * PlanCacheUserMappingCallback - * Syscache inval callback function for user mapping cache invalidation. + * Syscache inval callback function for user mapping cache invalidation. * - * Invalidates plans which have pushed down foreign joins. + * Invalidates plans which have pushed down foreign joins. */ static void PlanCacheUserMappingCallback(Datum arg, int cacheid, uint32 hashvalue) @@ -1911,9 +1912,9 @@ PlanCacheUserMappingCallback(Datum arg, int cacheid, uint32 hashvalue) /* * If the plan has pushed down foreign joins, those join may become - * unsafe to push down because of user mapping changes. Invalidate only - * the generic plan, since changes to user mapping do not invalidate the - * parse tree. + * unsafe to push down because of user mapping changes. Invalidate + * only the generic plan, since changes to user mapping do not + * invalidate the parse tree. */ if (plansource->gplan && plansource->gplan->has_foreign_join) plansource->gplan->is_valid = false; diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index 1b7b99548c5..afb6c8772da 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -5251,9 +5251,9 @@ RelationIdIsInInitFile(Oid relationId) bool RelationHasUnloggedIndex(Relation rel) { - List *indexoidlist; - ListCell *indexoidscan; - bool result = false; + List *indexoidlist; + ListCell *indexoidscan; + bool result = false; indexoidlist = RelationGetIndexList(rel); |