summaryrefslogtreecommitdiff
path: root/src/backend/utils/cache
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-08-18 20:53:48 +0000
committerBruce Momjian <bruce@momjian.us>1997-08-18 20:53:48 +0000
commitb99c63cfc029cc0552e98f652d1734aec1124a5b (patch)
tree6e18eedc0b8ebfc0d84479ed26d0ea9b12d8125d /src/backend/utils/cache
parent022903f22e54cbc78b4acc1ef54f73d19a051630 (diff)
Now that names are null terminated, no need to do all that NAMEDATALEN stuff.
Diffstat (limited to 'src/backend/utils/cache')
-rw-r--r--src/backend/utils/cache/relcache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c
index 0282a60d806..d7bb7e79faf 100644
--- a/src/backend/utils/cache/relcache.c
+++ b/src/backend/utils/cache/relcache.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.12 1997/08/12 22:54:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.13 1997/08/18 20:53:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -284,7 +284,7 @@ BuildDescInfoError(RelationBuildDescInfo buildinfo)
sprintf(errBuf, "(relation id %d)", buildinfo.i.info_id);
break;
case INFO_RELNAME:
- sprintf(errBuf, "(relation name %.*s)", NAMEDATALEN, buildinfo.i.info_name);
+ sprintf(errBuf, "(relation name %s)", buildinfo.i.info_name);
break;
}
@@ -1282,8 +1282,8 @@ RelationForgetRelation (Oid rid)
prev = curr;
}
if ( curr == NIL )
- elog (FATAL, "Local relation %.*s not found in list",
- NAMEDATALEN, (RelationGetRelationName(relation))->data);
+ elog (FATAL, "Local relation %s not found in list",
+ (RelationGetRelationName(relation))->data);
if ( prev == NIL )
newlyCreatedRelns = lnext (newlyCreatedRelns);
else