summaryrefslogtreecommitdiff
path: root/src/backend/commands/rename.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/commands/rename.c')
-rw-r--r--src/backend/commands/rename.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/backend/commands/rename.c b/src/backend/commands/rename.c
index 2a4abeb005..02d93905a0 100644
--- a/src/backend/commands/rename.c
+++ b/src/backend/commands/rename.c
@@ -39,7 +39,6 @@
#include "utils/lsyscache.h"
#include "utils/relcache.h"
#include "utils/syscache.h"
-#include "utils/temprel.h"
#define RI_TRIGGER_PK 1 /* is a trigger on the PK relation */
@@ -271,13 +270,6 @@ renamerel(const RangeVar *relation, const char *newrelname)
newrelname);
/*
- * Check for renaming a temp table, which only requires altering the
- * temp-table mapping, not the underlying table.
- */
- if (rename_temp_relation(relation->relname, newrelname))
- return; /* all done... */
-
- /*
* Grab an exclusive lock on the target table or index, which we will
* NOT release until end of transaction.
*/