7
7
*
8
8
*
9
9
* 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 $
11
11
*
12
12
*
13
13
* INTERFACE ROUTINES
14
14
*heap_create()- Create an uncataloged heap relation
15
15
*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
17
17
*
18
18
* NOTES
19
19
* this code taken from access/heap/create.c, which contains
@@ -889,7 +889,7 @@ heap_create_with_catalog(char *relname,
889
889
890
890
891
891
/* ----------------------------------------------------------------
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
893
893
*
894
894
*1)open relation, check for existence, etc.
895
895
*2)remove inheritance information
@@ -1046,7 +1046,7 @@ RelationRemoveIndexes(Relation relation)
1046
1046
& entry );
1047
1047
1048
1048
while (HeapTupleIsValid (tuple = heap_getnext (scan ,0 )))
1049
- index_destroy (((Form_pg_index )GETSTRUCT (tuple ))-> indexrelid );
1049
+ index_drop (((Form_pg_index )GETSTRUCT (tuple ))-> indexrelid );
1050
1050
1051
1051
heap_endscan (scan );
1052
1052
heap_close (indexRelation ,RowExclusiveLock );
@@ -1441,12 +1441,12 @@ DeleteTypeTuple(Relation rel)
1441
1441
}
1442
1442
1443
1443
/* --------------------------------
1444
- *heap_destroy_with_catalog
1444
+ *heap_drop_with_catalog
1445
1445
*
1446
1446
* --------------------------------
1447
1447
*/
1448
1448
void
1449
- heap_destroy_with_catalog (char * relname )
1449
+ heap_drop_with_catalog (char * relname )
1450
1450
{
1451
1451
Relation rel ;
1452
1452
Oid rid ;
@@ -1575,13 +1575,13 @@ heap_destroy_with_catalog(char *relname)
1575
1575
}
1576
1576
1577
1577
/*
1578
- *heap_destroy
1578
+ *heap_drop
1579
1579
* destroy and close temporary relations
1580
1580
*
1581
1581
*/
1582
1582
1583
1583
void
1584
- heap_destroy (Relation rel )
1584
+ heap_drop (Relation rel )
1585
1585
{
1586
1586
ReleaseRelationBuffers (rel );
1587
1587
if (!(rel -> rd_isnoname )|| !(rel -> rd_unlinked ))
@@ -1634,7 +1634,7 @@ InitNoNameRelList(void)
1634
1634
1635
1635
MODIFIES the global variable tempRels
1636
1636
we don't really remove it, just mark it as NULL
1637
- andDestroyNoNameRels will look for NULLs
1637
+ andDropNoNameRels will look for NULLs
1638
1638
*/
1639
1639
static void
1640
1640
RemoveFromNoNameRelList (Relation r )
@@ -1679,7 +1679,7 @@ AddToNoNameRelList(Relation r)
1679
1679
go through the tempRels list and destroy each of the relations
1680
1680
*/
1681
1681
void
1682
- DestroyNoNameRels (void )
1682
+ DropNoNameRels (void )
1683
1683
{
1684
1684
int i ;
1685
1685
Relation rel ;
@@ -1692,7 +1692,7 @@ DestroyNoNameRels(void)
1692
1692
rel = tempRels -> rels [i ];
1693
1693
/* rel may be NULL if it has been removed from the list already */
1694
1694
if (rel )
1695
- heap_destroy (rel );
1695
+ heap_drop (rel );
1696
1696
}
1697
1697
free (tempRels -> rels );
1698
1698
free (tempRels );