aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/relcache.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-03-31 06:26:32 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-03-31 06:26:32 +0000
commit31141025214e9508be5cb05b87cd63e563960925 (patch)
treea11afc3f520cb986892e759159d026afc7c4140c /src/backend/utils/cache/relcache.c
parent5f4745adf4fb2a1f933b25d7a2bc72b39fa9edfd (diff)
downloadpostgresql-31141025214e9508be5cb05b87cd63e563960925.tar.gz
postgresql-31141025214e9508be5cb05b87cd63e563960925.zip
Reimplement temp tables using schemas. The temp table map is history;
temp table entries in pg_class have the names the user would expect.
Diffstat (limited to 'src/backend/utils/cache/relcache.c')
-rw-r--r--src/backend/utils/cache/relcache.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c
index 4894cd27795..fcdffa9132e 100644
--- a/src/backend/utils/cache/relcache.c
+++ b/src/backend/utils/cache/relcache.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.158 2002/03/26 19:16:10 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.159 2002/03/31 06:26:31 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -60,7 +60,6 @@
#include "utils/lsyscache.h"
#include "utils/relcache.h"
#include "utils/syscache.h"
-#include "utils/temprel.h"
/*
@@ -186,7 +185,7 @@ do { \
nodentry->reldesc = RELATION; \
if (RelationGetNamespace(RELATION) == PG_CATALOG_NAMESPACE) \
{ \
- char *relname = RelationGetPhysicalRelationName(RELATION); \
+ char *relname = RelationGetRelationName(RELATION); \
RelNameCacheEnt *namehentry; \
namehentry = (RelNameCacheEnt*)hash_search(RelationSysNameCache, \
relname, \
@@ -247,7 +246,7 @@ do { \
elog(WARNING, "trying to delete a reldesc that does not exist."); \
if (RelationGetNamespace(RELATION) == PG_CATALOG_NAMESPACE) \
{ \
- char *relname = RelationGetPhysicalRelationName(RELATION); \
+ char *relname = RelationGetRelationName(RELATION); \
RelNameCacheEnt *namehentry; \
namehentry = (RelNameCacheEnt*)hash_search(RelationSysNameCache, \
relname, \
@@ -1571,19 +1570,10 @@ RelationIdGetRelation(Oid relationId)
Relation
RelationSysNameGetRelation(const char *relationName)
{
- char *temprelname;
Relation rd;
RelationBuildDescInfo buildinfo;
/*
- * if caller is looking for a temp relation, substitute its real name;
- * we only index temp rels by their real names.
- */
- temprelname = get_temp_rel_by_username(relationName);
- if (temprelname != NULL)
- relationName = temprelname;
-
- /*
* first try and get a reldesc from the cache
*/
rd = RelationSysNameCacheGetRelation(relationName);