From ddc335290cb0bd09b3529cb032cfabf85029201b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 16 Nov 1999 16:55:28 +0000 Subject: [PATCH] Fix lookup of temp table names that I missed yesterday. --- src/backend/utils/cache/temprel.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/backend/utils/cache/temprel.c b/src/backend/utils/cache/temprel.c index d57152d550..9bf51cfec3 100644 --- a/src/backend/utils/cache/temprel.c +++ b/src/backend/utils/cache/temprel.c @@ -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; } -- 2.40.0