88 *
99 *
1010 * IDENTIFICATION
11- * $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.26 2000/07/04 06:11:47 tgl Exp $
11+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.27 2000/07/12 18:04:45 momjian Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -107,6 +107,7 @@ remove_all_temp_relations(void)
107107
108108 next = lnext (l ); /* do this first, l is deallocated */
109109
110+ /* Indexes are dropped during heap drop */
110111 if (temp_rel -> relkind != RELKIND_INDEX )
111112 {
112113 char relname [NAMEDATALEN ];
@@ -115,8 +116,6 @@ remove_all_temp_relations(void)
115116 strcpy (relname , temp_rel -> user_relname );
116117 heap_drop_with_catalog (relname , allowSystemTableMods );
117118 }
118- else
119- index_drop (temp_rel -> relid );
120119
121120 l = next ;
122121 }
@@ -235,7 +234,7 @@ invalidate_temp_relations(void)
235234 *
236235 * We also reject an attempt to rename a normal table to a name in use
237236 * as a temp table name. That would fail later on anyway when rename.c
238- * looks for a rename conflict, but we can give a more specific error
237+ * looks for a rename conflict, but we can give a more specific error
239238 * message for the problem here.
240239 *
241240 * It might seem that we need to check for attempts to rename the physical
0 commit comments