Skip to content

Commit ddc3352

Browse files
committed
Fix lookup of temp table names that I missed yesterday.
1 parent e1492cc commit ddc3352

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/backend/utils/cache/temprel.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.16 1999/11/16 04:13:59 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.17 1999/11/16 16:55:28 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -221,16 +221,13 @@ get_temp_rel_by_physicalname(char *relname)
221221
{
222222
List *l;
223223

224-
/* already physical, needed for bootstrapping temp tables */
225-
if (strncmp(relname,"pg_temp.", strlen("pg_temp.")) == 0)
226-
return relname;
227-
228224
foreach(l, temp_rels)
229225
{
230226
TempTable *temp_rel = lfirst(l);
231227

232228
if (strcmp(temp_rel->relname, relname) == 0)
233229
return temp_rel->user_relname;
234230
}
235-
return NULL;
231+
/* needed for bootstrapping temp tables */
232+
return relname;
236233
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy