]> granicus.if.org Git - postgresql/commitdiff
Fix lookup of temp table names that I missed yesterday.
authorBruce Momjian <bruce@momjian.us>
Tue, 16 Nov 1999 16:55:28 +0000 (16:55 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 16 Nov 1999 16:55:28 +0000 (16:55 +0000)
src/backend/utils/cache/temprel.c

index d57152d550d1a5f82314617414d3bc9a53fb0d21..9bf51cfec3341ab2d336df9c40733cc27d91f388 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * 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)
 {
        List       *l;
 
-       /* already physical, needed for bootstrapping temp tables */
-       if (strncmp(relname,"pg_temp.", strlen("pg_temp.")) == 0)
-               return relname;
-               
        foreach(l, temp_rels)
        {
                TempTable  *temp_rel = lfirst(l);
@@ -232,5 +228,6 @@ get_temp_rel_by_physicalname(char *relname)
                if (strcmp(temp_rel->relname, relname) == 0)
                        return temp_rel->user_relname;
        }
-       return NULL;
+       /* needed for bootstrapping temp tables */
+       return relname;
 }