diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-03-26 19:17:02 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-03-26 19:17:02 +0000 |
commit | 1dbf8aa7a8159875bb46f6ee6ab0116eee76869b (patch) | |
tree | 9aa08b4247dc230b6d35aa9c34b488b36b716693 /src/backend/utils/cache/syscache.c | |
parent | da631e931f9da4bc5df4bfd39f0c42684adfb8e5 (diff) | |
download | postgresql-1dbf8aa7a8159875bb46f6ee6ab0116eee76869b.tar.gz postgresql-1dbf8aa7a8159875bb46f6ee6ab0116eee76869b.zip |
pg_class has a relnamespace column. You can create and access tables
in schemas other than the system namespace; however, there's no search
path yet, and not all operations work yet on tables outside the system
namespace.
Diffstat (limited to 'src/backend/utils/cache/syscache.c')
-rw-r--r-- | src/backend/utils/cache/syscache.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/utils/cache/syscache.c b/src/backend/utils/cache/syscache.c index c30bbe3090c..57d4719b294 100644 --- a/src/backend/utils/cache/syscache.c +++ b/src/backend/utils/cache/syscache.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.69 2002/03/22 21:34:44 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.70 2002/03/26 19:16:14 tgl Exp $ * * NOTES * These routines allow the parser/planner/executor to perform @@ -86,14 +86,14 @@ */ struct cachedesc { - char *name; /* name of the relation being cached */ - char *indname; /* name of index relation for this cache */ + const char *name; /* name of the relation being cached */ + const char *indname; /* name of index relation for this cache */ int reloidattr; /* attr number of rel OID reference, or 0 */ int nkeys; /* # of keys needed for cache lookup */ int key[4]; /* attribute numbers of key attrs */ }; -static struct cachedesc cacheinfo[] = { +static const struct cachedesc cacheinfo[] = { {AggregateRelationName, /* AGGNAME */ AggregateNameTypeIndex, 0, @@ -324,13 +324,13 @@ static struct cachedesc cacheinfo[] = { 0, 0 }}, - {RelationRelationName, /* RELNAME */ - ClassNameIndex, + {RelationRelationName, /* RELNAMENSP */ + ClassNameNspIndex, ObjectIdAttributeNumber, - 1, + 2, { Anum_pg_class_relname, - 0, + Anum_pg_class_relnamespace, 0, 0 }}, @@ -515,7 +515,7 @@ SearchSysCache(int cacheId, * when sought. This is a kluge ... temp table substitution should be * happening at a higher level ... */ - if (cacheId == RELNAME || cacheId == TYPENAME) + if (cacheId == RELNAMENSP || cacheId == TYPENAME) { char *nontemp_relname; |