File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 88 *
99 *
1010 * IDENTIFICATION
11- * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.134 2001/01/18 04:01:42 inoue Exp $
11+ * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.135 2001/01/18 07:29:04 inoue Exp $
1212 *
1313 *
1414 * INTERFACE ROUTINES
@@ -1557,6 +1557,7 @@ setNewRelfilenode(Relation relation)
15571557 memcpy ((char * ) & workrel , relation , sizeof (RelationData ));
15581558 workrel .rd_node .relNode = newrelfilenode ;
15591559 heap_storage_create (& workrel );
1560+ smgrclose (DEFAULT_SMGR , & workrel );
15601561 /* update pg_class tuple with new relfilenode in place */
15611562 if (in_place_update )
15621563 {
@@ -1578,9 +1579,10 @@ setNewRelfilenode(Relation relation)
15781579 idescs );
15791580 CatalogIndexInsert (idescs , Num_pg_class_indices , pg_class , classTuple );
15801581 CatalogCloseIndices (Num_pg_class_indices , idescs );
1581- heap_freetuple (classTuple );
15821582 }
15831583 heap_close (pg_class , NoLock );
1584+ if (!in_place_update )
1585+ heap_freetuple (classTuple );
15841586 /* Make sure the relfilenode change */
15851587 CommandCounterIncrement ();
15861588}
You can’t perform that action at this time.
0 commit comments