77 *
88 *
99 * IDENTIFICATION
10- * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.38 1997/11/2804:39:34 momjian Exp $
10+ * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.39 1997/11/2817:26:51 momjian Exp $
1111 *
1212 * INTERFACE ROUTINES
1313 *heap_create()- Create an uncataloged heap relation
14- *heap_create_and_catalog () - Create a cataloged relation
15- *heap_destroy ()- Removes named relation from catalogs
14+ *heap_create_with_catalog () - Create a cataloged relation
15+ *heap_destroy_with_catalog ()- Removes named relation from catalogs
1616 *
1717 * NOTES
1818 * this code taken from access/heap/create.c, which contains
19- * the oldheap_create_and_catalogr , amcreate, and amdestroy.
19+ * the oldheap_create_with_catalogr , amcreate, and amdestroy.
2020 * those routines will soon call these routines using the function
2121 * manager,
2222 * just like the poorly named "NewXXX" routines do.The
@@ -332,7 +332,7 @@ heap_create(char *name,
332332
333333
334334/* ----------------------------------------------------------------
335- *heap_create_and_catalog - Create a cataloged relation
335+ *heap_create_with_catalog - Create a cataloged relation
336336 *
337337 *this is done in 6 steps:
338338 *
@@ -343,7 +343,7 @@ heap_create(char *name,
343343 * preforms a scan to ensure that no relation with the
344344 * same name already exists.
345345 *
346- *3)heap_create_and_catalogr () is called to create the new relation
346+ *3)heap_create_with_catalogr () is called to create the new relation
347347 * on disk.
348348 *
349349 *4) TypeDefine() is called to define a new type corresponding
@@ -376,7 +376,7 @@ heap_create(char *name,
376376 *create new relation
377377 *insert new relation into attribute catalog
378378 *
379- *Should coordinate withheap_create_and_catalogr ().Either
379+ *Should coordinate withheap_create_with_catalogr ().Either
380380 *it should not be called or there should be a way to prevent
381381 *the relation from being removed at the end of the
382382 *transaction if it is successful ('u'/'r' may be enough).
@@ -739,13 +739,13 @@ addNewRelationType(char *typeName, Oid new_rel_oid)
739739}
740740
741741/* --------------------------------
742- *heap_create_and_catalog
742+ *heap_create_with_catalog
743743 *
744744 *creates a new cataloged relation. see comments above.
745745 * --------------------------------
746746 */
747747Oid
748- heap_create_and_catalog (char relname [],
748+ heap_create_with_catalog (char relname [],
749749TupleDesc tupdesc )
750750{
751751Relation pg_class_desc ;
@@ -830,7 +830,7 @@ heap_create_and_catalog(char relname[],
830830
831831
832832/* ----------------------------------------------------------------
833- *heap_destroy - removes all record of named relation from catalogs
833+ *heap_destroy_with_catalog - removes all record of named relation from catalogs
834834 *
835835 *1)open relation, check for existence, etc.
836836 *2)remove inheritance information
@@ -1246,12 +1246,12 @@ DeletePgTypeTuple(Relation rdesc)
12461246}
12471247
12481248/* --------------------------------
1249- *heap_destroy
1249+ *heap_destroy_with_catalog
12501250 *
12511251 * --------------------------------
12521252 */
12531253void
1254- heap_destroy (char * relname )
1254+ heap_destroy_with_catalog (char * relname )
12551255{
12561256Relation rdesc ;
12571257Oid rid ;
@@ -1358,13 +1358,13 @@ heap_destroy(char *relname)
13581358}
13591359
13601360/*
1361- *heap_destroyr
1361+ *heap_destroy
13621362 * destroy and close temporary relations
13631363 *
13641364 */
13651365
13661366void
1367- heap_destroyr (Relation rdesc )
1367+ heap_destroy (Relation rdesc )
13681368{
13691369ReleaseRelationBuffers (rdesc );
13701370if (!(rdesc -> rd_istemp )|| !(rdesc -> rd_tmpunlinked ))
@@ -1475,7 +1475,7 @@ DestroyTempRels(void)
14751475rdesc = tempRels -> rels [i ];
14761476/* rdesc may be NULL if it has been removed from the list already */
14771477if (rdesc )
1478- heap_destroyr (rdesc );
1478+ heap_destroy (rdesc );
14791479}
14801480free (tempRels -> rels );
14811481free (tempRels );