diff options
Diffstat (limited to 'src/backend/utils/cache')
-rw-r--r-- | src/backend/utils/cache/catcache.c | 6 | ||||
-rw-r--r-- | src/backend/utils/cache/inval.c | 4 | ||||
-rw-r--r-- | src/backend/utils/cache/lsyscache.c | 10 | ||||
-rw-r--r-- | src/backend/utils/cache/relcache.c | 62 |
4 files changed, 40 insertions, 42 deletions
diff --git a/src/backend/utils/cache/catcache.c b/src/backend/utils/cache/catcache.c index a1e55ee71f5..9c098aa41f7 100644 --- a/src/backend/utils/cache/catcache.c +++ b/src/backend/utils/cache/catcache.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.106 2003/07/28 00:09:16 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.107 2003/08/04 00:43:26 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -956,8 +956,8 @@ CatalogCacheInitializeCache(CatCache *cache) cache->cc_isname[i] = (keytype == NAMEOID); /* - * Do equality-function lookup (we assume this won't need a catalog - * lookup for any supported type) + * Do equality-function lookup (we assume this won't need a + * catalog lookup for any supported type) */ fmgr_info_cxt(cache->cc_skey[i].sk_procedure, &cache->cc_skey[i].sk_func, diff --git a/src/backend/utils/cache/inval.c b/src/backend/utils/cache/inval.c index 080338a77be..973f1b4b507 100644 --- a/src/backend/utils/cache/inval.c +++ b/src/backend/utils/cache/inval.c @@ -74,7 +74,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/inval.c,v 1.56 2003/07/25 20:17:52 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/inval.c,v 1.57 2003/08/04 00:43:26 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -449,9 +449,7 @@ LocalExecuteInvalidationMessage(SharedInvalidationMessage *msg) } } else - { elog(FATAL, "unrecognized SI message id: %d", msg->id); - } } /* diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c index 86bb40e738a..0a68ade5da1 100644 --- a/src/backend/utils/cache/lsyscache.c +++ b/src/backend/utils/cache/lsyscache.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.103 2003/07/28 00:09:16 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.104 2003/08/04 00:43:26 momjian Exp $ * * NOTES * Eventually, the index information should go through here, too. @@ -126,8 +126,8 @@ get_op_hash_function(Oid opno) Oid opclass = InvalidOid; /* - * Search pg_amop to see if the target operator is registered as the "=" - * operator of any hash opclass. If the operator is registered in + * Search pg_amop to see if the target operator is registered as the + * "=" operator of any hash opclass. If the operator is registered in * multiple opclasses, assume we can use the associated hash function * from any one. */ @@ -728,8 +728,8 @@ get_func_rettype(Oid funcid) Oid get_func_signature(Oid funcid, Oid *argtypes, int *nargs) { - HeapTuple tp; - Form_pg_proc procstruct; + HeapTuple tp; + Form_pg_proc procstruct; Oid result; tp = SearchSysCache(PROCOID, diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index c9a56c0072a..8271473183d 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.186 2003/07/25 20:17:52 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.187 2003/08/04 00:43:26 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -962,7 +962,8 @@ RelationInitIndexAccessInfo(Relation relation) /* * Make a copy of the pg_index entry for the index. Since pg_index * contains variable-length and possibly-null fields, we have to do - * this honestly rather than just treating it as a Form_pg_index struct. + * this honestly rather than just treating it as a Form_pg_index + * struct. */ tuple = SearchSysCache(INDEXRELID, ObjectIdGetDatum(RelationGetRelid(relation)), @@ -1368,8 +1369,7 @@ formrdesc(const char *relationName, bool has_not_null; /* - * allocate new relation desc - * clear all fields of reldesc + * allocate new relation desc clear all fields of reldesc */ relation = (Relation) palloc0(sizeof(RelationData)); relation->rd_targblock = InvalidBlockNumber; @@ -1710,8 +1710,8 @@ RelationClearRelation(Relation relation, bool rebuild) /* * Never, never ever blow away a nailed-in system relation, because - * we'd be unable to recover. However, we must update rd_nblocks - * and reset rd_targblock, in case we got called because of a relation + * we'd be unable to recover. However, we must update rd_nblocks and + * reset rd_targblock, in case we got called because of a relation * cache flush that was triggered by VACUUM. */ if (relation->rd_isnailed) @@ -1742,8 +1742,8 @@ RelationClearRelation(Relation relation, bool rebuild) * Free all the subsidiary data structures of the relcache entry. We * cannot free rd_att if we are trying to rebuild the entry, however, * because pointers to it may be cached in various places. The rule - * manager might also have pointers into the rewrite rules. So to begin - * with, we can only get rid of these fields: + * manager might also have pointers into the rewrite rules. So to + * begin with, we can only get rid of these fields: */ FreeTriggerDesc(relation->trigdesc); if (relation->rd_indextuple) @@ -2705,15 +2705,15 @@ RelationGetIndexExpressions(Relation relation) /* * We build the tree we intend to return in the caller's context. - * After successfully completing the work, we copy it into the relcache - * entry. This avoids problems if we get some sort of - * error partway through. + * After successfully completing the work, we copy it into the + * relcache entry. This avoids problems if we get some sort of error + * partway through. * - * We make use of the syscache's copy of pg_index's tupledesc - * to access the non-fixed fields of the tuple. We assume that - * the syscache will be initialized before any access of a - * partial index could occur. (This would probably fail if we - * were to allow partial indexes on system catalogs.) + * We make use of the syscache's copy of pg_index's tupledesc to access + * the non-fixed fields of the tuple. We assume that the syscache + * will be initialized before any access of a partial index could + * occur. (This would probably fail if we were to allow partial + * indexes on system catalogs.) */ exprsDatum = SysCacheGetAttr(INDEXRELID, relation->rd_indextuple, Anum_pg_index_indexprs, &isnull); @@ -2723,8 +2723,8 @@ RelationGetIndexExpressions(Relation relation) pfree(exprsString); /* - * Run the expressions through eval_const_expressions. This is not just - * an optimization, but is necessary, because the planner will be + * Run the expressions through eval_const_expressions. This is not + * just an optimization, but is necessary, because the planner will be * comparing them to const-folded qual clauses, and may fail to detect * valid matches without this. */ @@ -2770,15 +2770,15 @@ RelationGetIndexPredicate(Relation relation) /* * We build the tree we intend to return in the caller's context. - * After successfully completing the work, we copy it into the relcache - * entry. This avoids problems if we get some sort of - * error partway through. + * After successfully completing the work, we copy it into the + * relcache entry. This avoids problems if we get some sort of error + * partway through. * - * We make use of the syscache's copy of pg_index's tupledesc - * to access the non-fixed fields of the tuple. We assume that - * the syscache will be initialized before any access of a - * partial index could occur. (This would probably fail if we - * were to allow partial indexes on system catalogs.) + * We make use of the syscache's copy of pg_index's tupledesc to access + * the non-fixed fields of the tuple. We assume that the syscache + * will be initialized before any access of a partial index could + * occur. (This would probably fail if we were to allow partial + * indexes on system catalogs.) */ predDatum = SysCacheGetAttr(INDEXRELID, relation->rd_indextuple, Anum_pg_index_indpred, &isnull); @@ -2788,8 +2788,8 @@ RelationGetIndexPredicate(Relation relation) pfree(predString); /* - * Run the expression through eval_const_expressions. This is not just - * an optimization, but is necessary, because the planner will be + * Run the expression through eval_const_expressions. This is not + * just an optimization, but is necessary, because the planner will be * comparing it to const-folded qual clauses, and may fail to detect * valid matches without this. */ @@ -3183,7 +3183,7 @@ write_relcache_init_file(void) (errcode_for_file_access(), errmsg("could not create init file \"%s\": %m", tempfilename), - errdetail("Continuing anyway, but there's something wrong."))); + errdetail("Continuing anyway, but there's something wrong."))); return; } @@ -3322,8 +3322,8 @@ write_relcache_init_file(void) { ereport(WARNING, (errcode_for_file_access(), - errmsg("could not rename init file \"%s\" to \"%s\": %m", - tempfilename, finalfilename), + errmsg("could not rename init file \"%s\" to \"%s\": %m", + tempfilename, finalfilename), errdetail("Continuing anyway, but there's something wrong."))); /* |