88 *
99 *
1010 * IDENTIFICATION
11- * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.104 2003/06/22 22:04:54 tgl Exp $
11+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.105 2003/07/25 20:17:52 tgl Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -158,8 +158,7 @@ GetCCHashEqFuncs(Oid keytype, PGFunction *hashfunc, RegProcedure *eqfunc)
158158* eqfunc = F_OIDVECTOREQ ;
159159break ;
160160default :
161- elog (FATAL ,"GetCCHashEqFuncs: type %u unsupported as catcache key" ,
162- keytype );
161+ elog (FATAL ,"type %u not supported as catcache key" ,keytype );
163162break ;
164163}
165164}
@@ -202,7 +201,7 @@ CatalogCacheComputeHashValue(CatCache *cache, int nkeys, ScanKey cur_skey)
202201cur_skey [0 ].sk_argument ));
203202break ;
204203default :
205- elog (FATAL ,"CCComputeHashValue : %d nkeys " ,nkeys );
204+ elog (FATAL ,"wrong number of hash keys : %d" ,nkeys );
206205break ;
207206}
208207
@@ -267,8 +266,7 @@ CatalogCacheComputeTupleHashValue(CatCache *cache, HeapTuple tuple)
267266Assert (!isNull );
268267break ;
269268default :
270- elog (FATAL ,"CCComputeTupleHashValue: %d cc_nkeys" ,
271- cache -> cc_nkeys );
269+ elog (FATAL ,"wrong number of hash keys: %d" ,cache -> cc_nkeys );
272270break ;
273271}
274272
@@ -291,14 +289,14 @@ CatCachePrintStats(void)
291289long cc_lsearches = 0 ;
292290long cc_lhits = 0 ;
293291
294- elog (DEBUG2 ,"Catcache stats dump: %d/%d tuples in catcaches" ,
292+ elog (DEBUG2 ,"catcache stats dump: %d/%d tuples in catcaches" ,
295293CacheHdr -> ch_ntup ,CacheHdr -> ch_maxtup );
296294
297295for (cache = CacheHdr -> ch_caches ;cache ;cache = cache -> cc_next )
298296{
299297if (cache -> cc_ntup == 0 && cache -> cc_searches == 0 )
300298continue ;/* don't print unused caches */
301- elog (DEBUG2 ,"Catcache %s/%s: %d tup, %ld srch, %ld+%ld=%ld hits, %ld+%ld=%ld loads, %ld invals, %ld discards, %ld lsrch, %ld lhits" ,
299+ elog (DEBUG2 ,"catcache %s/%s: %d tup, %ld srch, %ld+%ld=%ld hits, %ld+%ld=%ld loads, %ld invals, %ld discards, %ld lsrch, %ld lhits" ,
302300cache -> cc_relname ,
303301cache -> cc_indname ,
304302cache -> cc_ntup ,
@@ -322,7 +320,7 @@ CatCachePrintStats(void)
322320cc_lsearches += cache -> cc_lsearches ;
323321cc_lhits += cache -> cc_lhits ;
324322}
325- elog (DEBUG2 ,"Catcache totals: %d tup, %ld srch, %ld+%ld=%ld hits, %ld+%ld=%ld loads, %ld invals, %ld discards, %ld lsrch, %ld lhits" ,
323+ elog (DEBUG2 ,"catcache totals: %d tup, %ld srch, %ld+%ld=%ld hits, %ld+%ld=%ld loads, %ld invals, %ld discards, %ld lsrch, %ld lhits" ,
326324CacheHdr -> ch_ntup ,
327325cc_searches ,
328326cc_hits ,
@@ -557,7 +555,7 @@ AtEOXact_CatCache(bool isCommit)
557555if (cl -> refcount != 0 )
558556{
559557if (isCommit )
560- elog (WARNING ,"Cache reference leak: cache %s (%d), list %p has count %d" ,
558+ elog (WARNING ,"cache reference leak: cache %s (%d), list %p has count %d" ,
561559ccp -> cc_relname ,ccp -> id ,cl ,cl -> refcount );
562560cl -> refcount = 0 ;
563561}
@@ -580,7 +578,7 @@ AtEOXact_CatCache(bool isCommit)
580578if (ct -> refcount != 0 )
581579{
582580if (isCommit )
583- elog (WARNING ,"Cache reference leak: cache %s (%d), tuple %u has count %d" ,
581+ elog (WARNING ,"cache reference leak: cache %s (%d), tuple %u has count %d" ,
584582ct -> my_cache -> cc_relname ,ct -> my_cache -> id ,
585583HeapTupleGetOid (& ct -> tuple ),
586584ct -> refcount );
@@ -947,7 +945,7 @@ CatalogCacheInitializeCache(CatCache *cache)
947945else
948946{
949947if (cache -> cc_key [i ]!= ObjectIdAttributeNumber )
950- elog (FATAL ,"CatalogCacheInit: only sys attr supported is OID" );
948+ elog (FATAL ,"only sys attr supported in caches is OID" );
951949keytype = OIDOID ;
952950}
953951