Commit ddc33529 authored by Bruce Momjian's avatar Bruce Momjian

Fix lookup of temp table names that I missed yesterday.

parent e1492cc3
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.16 1999/11/16 04:13:59 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.17 1999/11/16 16:55:28 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -221,10 +221,6 @@ get_temp_rel_by_physicalname(char *relname) ...@@ -221,10 +221,6 @@ get_temp_rel_by_physicalname(char *relname)
{ {
List *l; List *l;
/* already physical, needed for bootstrapping temp tables */
if (strncmp(relname,"pg_temp.", strlen("pg_temp.")) == 0)
return relname;
foreach(l, temp_rels) foreach(l, temp_rels)
{ {
TempTable *temp_rel = lfirst(l); TempTable *temp_rel = lfirst(l);
...@@ -232,5 +228,6 @@ get_temp_rel_by_physicalname(char *relname) ...@@ -232,5 +228,6 @@ get_temp_rel_by_physicalname(char *relname)
if (strcmp(temp_rel->relname, relname) == 0) if (strcmp(temp_rel->relname, relname) == 0)
return temp_rel->user_relname; return temp_rel->user_relname;
} }
return NULL; /* needed for bootstrapping temp tables */
return relname;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment