77 *
88 *
99 * IDENTIFICATION
10- * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.111 1999/11/28 02: 03:04 tgl Exp $
10+ * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.112 1999/12/10 03:55:47 momjian Exp $
1111 *
1212 *
1313 * INTERFACE ROUTINES
1414 *heap_create()- Create an uncataloged heap relation
1515 *heap_create_with_catalog() - Create a cataloged relation
16- *heap_destroy_with_catalog () - Removes named relation from catalogs
16+ *heap_drop_with_catalog () - Removes named relation from catalogs
1717 *
1818 * NOTES
1919 * this code taken from access/heap/create.c, which contains
@@ -889,7 +889,7 @@ heap_create_with_catalog(char *relname,
889889
890890
891891/* ----------------------------------------------------------------
892- *heap_destroy_with_catalog - removes all record of named relation from catalogs
892+ *heap_drop_with_catalog - removes all record of named relation from catalogs
893893 *
894894 *1)open relation, check for existence, etc.
895895 *2)remove inheritance information
@@ -1046,7 +1046,7 @@ RelationRemoveIndexes(Relation relation)
10461046& entry );
10471047
10481048while (HeapTupleIsValid (tuple = heap_getnext (scan ,0 )))
1049- index_destroy (((Form_pg_index )GETSTRUCT (tuple ))-> indexrelid );
1049+ index_drop (((Form_pg_index )GETSTRUCT (tuple ))-> indexrelid );
10501050
10511051heap_endscan (scan );
10521052heap_close (indexRelation ,RowExclusiveLock );
@@ -1441,12 +1441,12 @@ DeleteTypeTuple(Relation rel)
14411441}
14421442
14431443/* --------------------------------
1444- *heap_destroy_with_catalog
1444+ *heap_drop_with_catalog
14451445 *
14461446 * --------------------------------
14471447 */
14481448void
1449- heap_destroy_with_catalog (char * relname )
1449+ heap_drop_with_catalog (char * relname )
14501450{
14511451Relation rel ;
14521452Oid rid ;
@@ -1575,13 +1575,13 @@ heap_destroy_with_catalog(char *relname)
15751575}
15761576
15771577/*
1578- *heap_destroy
1578+ *heap_drop
15791579 * destroy and close temporary relations
15801580 *
15811581 */
15821582
15831583void
1584- heap_destroy (Relation rel )
1584+ heap_drop (Relation rel )
15851585{
15861586ReleaseRelationBuffers (rel );
15871587if (!(rel -> rd_isnoname )|| !(rel -> rd_unlinked ))
@@ -1634,7 +1634,7 @@ InitNoNameRelList(void)
16341634
16351635 MODIFIES the global variable tempRels
16361636 we don't really remove it, just mark it as NULL
1637- andDestroyNoNameRels will look for NULLs
1637+ andDropNoNameRels will look for NULLs
16381638*/
16391639static void
16401640RemoveFromNoNameRelList (Relation r )
@@ -1679,7 +1679,7 @@ AddToNoNameRelList(Relation r)
16791679 go through the tempRels list and destroy each of the relations
16801680*/
16811681void
1682- DestroyNoNameRels (void )
1682+ DropNoNameRels (void )
16831683{
16841684int i ;
16851685Relation rel ;
@@ -1692,7 +1692,7 @@ DestroyNoNameRels(void)
16921692rel = tempRels -> rels [i ];
16931693/* rel may be NULL if it has been removed from the list already */
16941694if (rel )
1695- heap_destroy (rel );
1695+ heap_drop (rel );
16961696}
16971697free (tempRels -> rels );
16981698free (tempRels );