77 *
88 *
99 * IDENTIFICATION
10- * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.37 1997/11/26 04:50:19 momjian Exp $
10+ * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.38 1997/11/28 04:39:34 momjian Exp $
1111 *
1212 * INTERFACE ROUTINES
13- *heap_creatr ()- Create an uncataloged heap relation
14- *heap_create() - Create a cataloged relation
13+ *heap_create ()- Create an uncataloged heap relation
14+ *heap_create_and_catalog() - Create a cataloged relation
1515 *heap_destroy()- Removes named relation from catalogs
1616 *
1717 * NOTES
1818 * this code taken from access/heap/create.c, which contains
19- * the old heap_creater, amcreate, and amdestroy. those routines
20- * will soon call these routines using the function manager,
19+ * the old heap_create_and_catalogr, amcreate, and amdestroy.
20+ * those routines will soon call these routines using the function
21+ * manager,
2122 * just like the poorly named "NewXXX" routines do.The
2223 * "New" routines are all going to die soon, once and for all!
2324 *-cim 1/13/91
@@ -148,7 +149,7 @@ static TempRelList *tempRels = NULL;
148149
149150
150151/* ----------------------------------------------------------------
151- *heap_creatr - Create an uncataloged heap relation
152+ *heap_create - Create an uncataloged heap relation
152153 *
153154 *Fields relpages, reltuples, reltuples, relkeys, relhistory,
154155 *relisindexed, and relkind of rdesc->rd_rel are initialized
@@ -160,12 +161,12 @@ static TempRelList *tempRels = NULL;
160161 *into the transaction context block.
161162 *
162163 *
163- * ifheap_creatr is called with "" as the name, thenheap_creatr will create a
164- * temporary name"temp_$RELOID" for the relation
164+ * ifheap_create is called with "" as the name, thenheap_create will create
165+ *a temporary name"temp_$RELOID" for the relation
165166 * ----------------------------------------------------------------
166167 */
167168Relation
168- heap_creatr (char * name ,
169+ heap_create (char * name ,
169170TupleDesc tupDesc )
170171{
171172registerunsigned i ;
@@ -331,7 +332,7 @@ heap_creatr(char *name,
331332
332333
333334/* ----------------------------------------------------------------
334- *heap_create - Create a cataloged relation
335+ *heap_create_and_catalog - Create a cataloged relation
335336 *
336337 *this is done in 6 steps:
337338 *
@@ -342,8 +343,8 @@ heap_creatr(char *name,
342343 * preforms a scan to ensure that no relation with the
343344 * same name already exists.
344345 *
345- *3)heap_creater () is called to create the new relation on
346- * disk.
346+ *3)heap_create_and_catalogr () is called to create the new relation
347+ *on disk.
347348 *
348349 *4) TypeDefine() is called to define a new type corresponding
349350 * to the new relation.
@@ -375,8 +376,8 @@ heap_creatr(char *name,
375376 *create new relation
376377 *insert new relation into attribute catalog
377378 *
378- *Should coordinate withheap_creater ().Either it should
379- *not be called or there should be a way to prevent
379+ *Should coordinate withheap_create_and_catalogr ().Either
380+ *it should not be called or there should be a way to prevent
380381 *the relation from being removed at the end of the
381382 *transaction if it is successful ('u'/'r' may be enough).
382383 *Also, if the transaction does not commit, then the
@@ -738,14 +739,14 @@ addNewRelationType(char *typeName, Oid new_rel_oid)
738739}
739740
740741/* --------------------------------
741- *heap_create
742+ *heap_create_and_catalog
742743 *
743744 *creates a new cataloged relation. see comments above.
744745 * --------------------------------
745746 */
746747Oid
747- heap_create (char relname [],
748- TupleDesc tupdesc )
748+ heap_create_and_catalog (char relname [],
749+ TupleDesc tupdesc )
749750{
750751Relation pg_class_desc ;
751752Relation new_rel_desc ;
@@ -782,11 +783,11 @@ heap_create(char relname[],
782783 *create an uncataloged relation and pull its relation oid
783784 *from the newly formed relation descriptor.
784785 *
785- *Note: The call toheap_creatr () does all the "real" work
786+ *Note: The call toheap_create () does all the "real" work
786787 *of creating the disk file for the relation.
787788 * ----------------
788789 */
789- new_rel_desc = heap_creatr (relname ,tupdesc );
790+ new_rel_desc = heap_create (relname ,tupdesc );
790791new_rel_oid = new_rel_desc -> rd_att -> attrs [0 ]-> attrelid ;
791792
792793/* ----------------