Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 52dd4cf

Browse files
author
Thomas G. Lockhart
committed
Fix CACHEDEBUG debugging statements; usually not used and apparently
broke a long time ago when some definitions changed.
1 parent de75f9e commit 52dd4cf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/utils/cache/syscache.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.16 1998/02/26 04:37:33 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.17 1998/05/09 23:45:29 thomas Exp $
1111
*
1212
* NOTES
1313
* These routines allow the parser/planner/executor to perform
@@ -438,7 +438,7 @@ SearchSysCacheTuple(int cacheId,/* cache selection code */
438438
#ifdef CACHEDEBUG
439439
elog(DEBUG,
440440
"SearchSysCacheTuple: Search %s(%d) %d %d %d %d failed",
441-
(*cacheinfo[cacheId].name)->data,
441+
cacheinfo[cacheId].name,
442442
cacheId, key1, key2, key3, key4);
443443
#endif
444444
return ((HeapTuple) NULL);
@@ -610,7 +610,7 @@ TypeDefaultRetrieve(Oid typId)
610610
{
611611
#ifdef CACHEDEBUG
612612
elog(DEBUG, "TypeDefaultRetrieve: Lookup in %s(%d) failed",
613-
(*cacheinfo[TYPOID].name)->data, TYPOID);
613+
cacheinfo[TYPOID].name, TYPOID);
614614
#endif /* defined(CACHEDEBUG) */
615615
return (NULL);
616616
}
@@ -628,8 +628,8 @@ TypeDefaultRetrieve(Oid typId)
628628
if (typDefault == (struct varlena *) NULL)
629629
{
630630
#ifdef CACHEDEBUG
631-
elog(DEBUG, "TypeDefaultRetrieve: No extractable typdefault",
632-
(*cacheinfo[TYPOID].name)->data, TYPOID);
631+
elog(DEBUG, "TypeDefaultRetrieve: No extractable typdefault in %s(%d)",
632+
cacheinfo[TYPOID].name, TYPOID);
633633
#endif /* defined(CACHEDEBUG) */
634634
return (NULL);
635635

0 commit comments

Comments
 (0)