diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-11-07 23:08:36 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-11-07 23:08:36 +0000 |
commit | 86ef36c9078311d5ccba53c17702af0450b11e25 (patch) | |
tree | a37836f78c4328e4b3a3ad6308a3779725546525 /src/backend/utils/cache/catcache.c | |
parent | df723a8a8aa3326d2ade8ad846a296e2e2500a64 (diff) |
New NameStr macro to convert Name to Str. No need for var.data anymore.
Fewer calls to nameout.
Better use of RelationGetRelationName.
Diffstat (limited to 'src/backend/utils/cache/catcache.c')
-rw-r--r-- | src/backend/utils/cache/catcache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/cache/catcache.c b/src/backend/utils/cache/catcache.c index d3c022c2479..cc86bae0fb6 100644 --- a/src/backend/utils/cache/catcache.c +++ b/src/backend/utils/cache/catcache.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.50 1999/11/01 02:29:25 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.51 1999/11/07 23:08:26 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -209,7 +209,7 @@ CatalogCacheInitializeCache(struct catcache * cache, cache->cc_skey[i].sk_nargs = cache->cc_skey[i].sk_func.fn_nargs; CACHE5_elog(DEBUG, "CatalogCacheInit %s %d %d %x", - &relation->rd_rel->relname, + RelationGetRelationName(relation), i, tupdesc->attrs[cache->cc_key[i] - 1]->attlen, cache); @@ -304,7 +304,7 @@ comphash(long l, char *v) * typelen so this may break them - XXX */ namestrcpy(&n, v); - v = n.data; + v = NameStr(n); } else if (l < 0) l = VARSIZE(v); |