8
8
*
9
9
*
10
10
* 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 $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -158,8 +158,7 @@ GetCCHashEqFuncs(Oid keytype, PGFunction *hashfunc, RegProcedure *eqfunc)
158
158
* eqfunc = F_OIDVECTOREQ ;
159
159
break ;
160
160
default :
161
- elog (FATAL ,"GetCCHashEqFuncs: type %u unsupported as catcache key" ,
162
- keytype );
161
+ elog (FATAL ,"type %u not supported as catcache key" ,keytype );
163
162
break ;
164
163
}
165
164
}
@@ -202,7 +201,7 @@ CatalogCacheComputeHashValue(CatCache *cache, int nkeys, ScanKey cur_skey)
202
201
cur_skey [0 ].sk_argument ));
203
202
break ;
204
203
default :
205
- elog (FATAL ,"CCComputeHashValue : %d nkeys " ,nkeys );
204
+ elog (FATAL ,"wrong number of hash keys : %d" ,nkeys );
206
205
break ;
207
206
}
208
207
@@ -267,8 +266,7 @@ CatalogCacheComputeTupleHashValue(CatCache *cache, HeapTuple tuple)
267
266
Assert (!isNull );
268
267
break ;
269
268
default :
270
- elog (FATAL ,"CCComputeTupleHashValue: %d cc_nkeys" ,
271
- cache -> cc_nkeys );
269
+ elog (FATAL ,"wrong number of hash keys: %d" ,cache -> cc_nkeys );
272
270
break ;
273
271
}
274
272
@@ -291,14 +289,14 @@ CatCachePrintStats(void)
291
289
long cc_lsearches = 0 ;
292
290
long cc_lhits = 0 ;
293
291
294
- elog (DEBUG2 ,"Catcache stats dump: %d/%d tuples in catcaches" ,
292
+ elog (DEBUG2 ,"catcache stats dump: %d/%d tuples in catcaches" ,
295
293
CacheHdr -> ch_ntup ,CacheHdr -> ch_maxtup );
296
294
297
295
for (cache = CacheHdr -> ch_caches ;cache ;cache = cache -> cc_next )
298
296
{
299
297
if (cache -> cc_ntup == 0 && cache -> cc_searches == 0 )
300
298
continue ;/* 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" ,
302
300
cache -> cc_relname ,
303
301
cache -> cc_indname ,
304
302
cache -> cc_ntup ,
@@ -322,7 +320,7 @@ CatCachePrintStats(void)
322
320
cc_lsearches += cache -> cc_lsearches ;
323
321
cc_lhits += cache -> cc_lhits ;
324
322
}
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" ,
326
324
CacheHdr -> ch_ntup ,
327
325
cc_searches ,
328
326
cc_hits ,
@@ -557,7 +555,7 @@ AtEOXact_CatCache(bool isCommit)
557
555
if (cl -> refcount != 0 )
558
556
{
559
557
if (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" ,
561
559
ccp -> cc_relname ,ccp -> id ,cl ,cl -> refcount );
562
560
cl -> refcount = 0 ;
563
561
}
@@ -580,7 +578,7 @@ AtEOXact_CatCache(bool isCommit)
580
578
if (ct -> refcount != 0 )
581
579
{
582
580
if (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" ,
584
582
ct -> my_cache -> cc_relname ,ct -> my_cache -> id ,
585
583
HeapTupleGetOid (& ct -> tuple ),
586
584
ct -> refcount );
@@ -947,7 +945,7 @@ CatalogCacheInitializeCache(CatCache *cache)
947
945
else
948
946
{
949
947
if (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" );
951
949
keytype = OIDOID ;
952
950
}
953
951