aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/indexcmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/commands/indexcmds.c')
-rw-r--r--src/backend/commands/indexcmds.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c
index b01093106c0..8c5fdbb6c94 100644
--- a/src/backend/commands/indexcmds.c
+++ b/src/backend/commands/indexcmds.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.155 2007/02/01 19:10:26 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.156 2007/03/06 02:06:12 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -209,13 +209,7 @@ DefineIndex(RangeVar *heapRelation,
}
else
{
- /*
- * if the target table is temporary then use a temp_tablespace
- */
- if (!rel->rd_istemp)
- tablespaceId = GetDefaultTablespace();
- else
- tablespaceId = GetTempTablespace();
+ tablespaceId = GetDefaultTablespace();
/* note InvalidOid is OK in this case */
}