7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.42 1998/01/05 03:30 :27 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.43 1998/01/06 19:42 :27 momjian Exp $
11
11
*
12
12
* INTERFACE ROUTINES
13
13
* heap_create() - Create an uncataloged heap relation
@@ -194,7 +194,7 @@ heap_create(char *name,
194
194
195
195
if (IsSystemRelationName (relname ) && IsNormalProcessingMode ())
196
196
{
197
- elog (ABORT ,
197
+ elog (ERROR ,
198
198
"Illegal class name: %s -- pg_ is reserved for system catalogs" ,
199
199
relname );
200
200
}
@@ -396,7 +396,7 @@ heap_create(char *name,
396
396
*
397
397
* this is used to make certain the tuple descriptor contains a
398
398
* valid set of attribute names. a problem simply generates
399
- * elog(ABORT ) which aborts the current transaction.
399
+ * elog(ERROR ) which aborts the current transaction.
400
400
* --------------------------------
401
401
*/
402
402
static void
@@ -421,7 +421,7 @@ CheckAttributeNames(TupleDesc tupdesc)
421
421
if (nameeq (& (HeapAtt [j ]-> attname ),
422
422
& (tupdesc -> attrs [i ]-> attname )))
423
423
{
424
- elog (ABORT ,
424
+ elog (ERROR ,
425
425
"create: system attribute named \"%s\"" ,
426
426
HeapAtt [j ]-> attname .data );
427
427
}
@@ -445,7 +445,7 @@ CheckAttributeNames(TupleDesc tupdesc)
445
445
if (nameeq (& (tupdesc -> attrs [j ]-> attname ),
446
446
& (tupdesc -> attrs [i ]-> attname )))
447
447
{
448
- elog (ABORT ,
448
+ elog (ERROR ,
449
449
"create: repeated attribute \"%s\"" ,
450
450
tupdesc -> attrs [j ]-> attname .data );
451
451
}
@@ -762,7 +762,7 @@ heap_create_with_catalog(char relname[],
762
762
*/
763
763
AssertState (IsNormalProcessingMode () || IsBootstrapProcessingMode ());
764
764
if (natts == 0 || natts > MaxHeapAttributeNumber )
765
- elog (ABORT , "amcreate: from 1 to %d attributes must be specified" ,
765
+ elog (ERROR , "amcreate: from 1 to %d attributes must be specified" ,
766
766
MaxHeapAttributeNumber );
767
767
768
768
CheckAttributeNames (tupdesc );
@@ -777,7 +777,7 @@ heap_create_with_catalog(char relname[],
777
777
if (RelationAlreadyExists (pg_class_desc , relname ))
778
778
{
779
779
heap_close (pg_class_desc );
780
- elog (ABORT , "amcreate: %s relation already exists" , relname );
780
+ elog (ERROR , "amcreate: %s relation already exists" , relname );
781
781
}
782
782
783
783
/* ----------------
@@ -910,7 +910,7 @@ RelationRemoveInheritance(Relation relation)
910
910
heap_endscan (scan );
911
911
heap_close (catalogRelation );
912
912
913
- elog (ABORT , "relation <%d> inherits \"%s\"" ,
913
+ elog (ERROR , "relation <%d> inherits \"%s\"" ,
914
914
((InheritsTupleForm ) GETSTRUCT (tuple ))-> inhrel ,
915
915
RelationGetRelationName (relation ));
916
916
}
@@ -1054,7 +1054,7 @@ DeletePgRelationTuple(Relation rdesc)
1054
1054
{
1055
1055
heap_endscan (pg_class_scan );
1056
1056
heap_close (pg_class_desc );
1057
- elog (ABORT , "DeletePgRelationTuple: %s relation nonexistent" ,
1057
+ elog (ERROR , "DeletePgRelationTuple: %s relation nonexistent" ,
1058
1058
& rdesc -> rd_rel -> relname );
1059
1059
}
1060
1060
@@ -1187,7 +1187,7 @@ DeletePgTypeTuple(Relation rdesc)
1187
1187
{
1188
1188
heap_endscan (pg_type_scan );
1189
1189
heap_close (pg_type_desc );
1190
- elog (ABORT , "DeletePgTypeTuple: %s type nonexistent" ,
1190
+ elog (ERROR , "DeletePgTypeTuple: %s type nonexistent" ,
1191
1191
& rdesc -> rd_rel -> relname );
1192
1192
}
1193
1193
@@ -1229,7 +1229,7 @@ DeletePgTypeTuple(Relation rdesc)
1229
1229
heap_endscan (pg_attribute_scan );
1230
1230
heap_close (pg_attribute_desc );
1231
1231
1232
- elog (ABORT , "DeletePgTypeTuple: att of type %s exists in relation %d" ,
1232
+ elog (ERROR , "DeletePgTypeTuple: att of type %s exists in relation %d" ,
1233
1233
& rdesc -> rd_rel -> relname , relid );
1234
1234
}
1235
1235
heap_endscan (pg_attribute_scan );
@@ -1265,7 +1265,7 @@ heap_destroy_with_catalog(char *relname)
1265
1265
*/
1266
1266
rdesc = heap_openr (relname );
1267
1267
if (rdesc == NULL )
1268
- elog (ABORT , "Relation %s Does Not Exist!" , relname );
1268
+ elog (ERROR , "Relation %s Does Not Exist!" , relname );
1269
1269
1270
1270
RelationSetLockForWrite (rdesc );
1271
1271
rid = rdesc -> rd_id ;
@@ -1275,7 +1275,7 @@ heap_destroy_with_catalog(char *relname)
1275
1275
* ----------------
1276
1276
*/
1277
1277
if (IsSystemRelationName (RelationGetRelationName (rdesc )-> data ))
1278
- elog (ABORT , "amdestroy: cannot destroy %s relation" ,
1278
+ elog (ERROR , "amdestroy: cannot destroy %s relation" ,
1279
1279
& rdesc -> rd_rel -> relname );
1280
1280
1281
1281
/* ----------------
@@ -1516,7 +1516,7 @@ start:;
1516
1516
1517
1517
if (length (query -> rtable ) > 1 ||
1518
1518
flatten_tlist (query -> targetList ) != NIL )
1519
- elog (ABORT , "DEFAULT: cannot use attribute(s)" );
1519
+ elog (ERROR , "DEFAULT: cannot use attribute(s)" );
1520
1520
te = (TargetEntry * ) lfirst (query -> targetList );
1521
1521
resdom = te -> resdom ;
1522
1522
expr = te -> expr ;
@@ -1526,13 +1526,13 @@ start:;
1526
1526
if (((Const * ) expr )-> consttype != atp -> atttypid )
1527
1527
{
1528
1528
if (* cast != 0 )
1529
- elog (ABORT , "DEFAULT: const type mismatched" );
1529
+ elog (ERROR , "DEFAULT: const type mismatched" );
1530
1530
sprintf (cast , ":: %s" , typeidTypeName (atp -> atttypid ));
1531
1531
goto start ;
1532
1532
}
1533
1533
}
1534
1534
else if (exprType (expr ) != atp -> atttypid )
1535
- elog (ABORT , "DEFAULT: type mismatched" );
1535
+ elog (ERROR , "DEFAULT: type mismatched" );
1536
1536
1537
1537
adbin = nodeToString (expr );
1538
1538
oldcxt = MemoryContextSwitchTo ((MemoryContext ) CacheCxt );
@@ -1585,7 +1585,7 @@ StoreRelCheck(Relation rel, ConstrCheck *check)
1585
1585
query = (Query * ) (queryTree_list -> qtrees [0 ]);
1586
1586
1587
1587
if (length (query -> rtable ) > 1 )
1588
- elog (ABORT , "CHECK: only relation %.*s can be referenced" ,
1588
+ elog (ERROR , "CHECK: only relation %.*s can be referenced" ,
1589
1589
NAMEDATALEN , rel -> rd_rel -> relname .data );
1590
1590
1591
1591
plan = (Plan * ) lfirst (planTree_list );
0 commit comments