|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.29 1998/01/05 03:28:57 momjian Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.30 1998/01/07 21:00:40 momjian Exp $ |
12 | 12 | *
|
13 | 13 | * NOTES
|
14 | 14 | * The old interface functions have been converted to macros
|
@@ -93,7 +93,7 @@ ComputeDataSize(TupleDesc tupleDesc,
|
93 | 93 | break;
|
94 | 94 | default:
|
95 | 95 | if (att[i]->attlen < sizeof(int32))
|
96 |
| - elog(ABORT, "ComputeDataSize: attribute %d has len %d", |
| 96 | + elog(ERROR, "ComputeDataSize: attribute %d has len %d", |
97 | 97 | i, att[i]->attlen);
|
98 | 98 | if (att[i]->attalign == 'd')
|
99 | 99 | data_length = DOUBLEALIGN(data_length) + att[i]->attlen;
|
@@ -194,7 +194,7 @@ DataFill(char *data,
|
194 | 194 | break;
|
195 | 195 | default:
|
196 | 196 | if (att[i]->attlen < sizeof(int32))
|
197 |
| - elog(ABORT, "DataFill: attribute %d has len %d", |
| 197 | + elog(ERROR, "DataFill: attribute %d has len %d", |
198 | 198 | i, att[i]->attlen);
|
199 | 199 | if (att[i]->attalign == 'd')
|
200 | 200 | {
|
@@ -249,10 +249,10 @@ heap_attisnull(HeapTuple tup, int attnum)
|
249 | 249 | break;
|
250 | 250 |
|
251 | 251 | case 0:
|
252 |
| - elog(ABORT, "heap_attisnull: zero attnum disallowed"); |
| 252 | + elog(ERROR, "heap_attisnull: zero attnum disallowed"); |
253 | 253 |
|
254 | 254 | default:
|
255 |
| - elog(ABORT, "heap_attisnull: undefined negative attnum"); |
| 255 | + elog(ERROR, "heap_attisnull: undefined negative attnum"); |
256 | 256 | }
|
257 | 257 |
|
258 | 258 | return (0);
|
@@ -290,7 +290,7 @@ heap_sysattrlen(AttrNumber attno)
|
290 | 290 | return sizeof f->t_cmax;
|
291 | 291 |
|
292 | 292 | default:
|
293 |
| - elog(ABORT, "sysattrlen: System attribute number %d unknown.", attno); |
| 293 | + elog(ERROR, "sysattrlen: System attribute number %d unknown.", attno); |
294 | 294 | return 0;
|
295 | 295 | }
|
296 | 296 | }
|
@@ -328,7 +328,7 @@ heap_sysattrbyval(AttrNumber attno)
|
328 | 328 | break;
|
329 | 329 | default:
|
330 | 330 | byval = true;
|
331 |
| - elog(ABORT, "sysattrbyval: System attribute number %d unknown.", |
| 331 | + elog(ERROR, "sysattrbyval: System attribute number %d unknown.", |
332 | 332 | attno);
|
333 | 333 | break;
|
334 | 334 | }
|
@@ -358,7 +358,7 @@ heap_getsysattr(HeapTuple tup, Buffer b, int attnum)
|
358 | 358 | case MaxCommandIdAttributeNumber:
|
359 | 359 | return ((Datum) (long) tup->t_cmax);
|
360 | 360 | default:
|
361 |
| - elog(ABORT, "heap_getsysattr: undefined attnum %d", attnum); |
| 361 | + elog(ERROR, "heap_getsysattr: undefined attnum %d", attnum); |
362 | 362 | }
|
363 | 363 | return ((Datum) NULL);
|
364 | 364 | }
|
@@ -538,7 +538,7 @@ fastgetattr(HeapTuple tup,
|
538 | 538 | default:
|
539 | 539 | if (att[j]->attlen < sizeof(int32))
|
540 | 540 | {
|
541 |
| - elog(ABORT, |
| 541 | + elog(ERROR, |
542 | 542 | "fastgetattr: attribute %d has len %d",
|
543 | 543 | j, att[j]->attlen);
|
544 | 544 | }
|
@@ -598,7 +598,7 @@ fastgetattr(HeapTuple tup,
|
598 | 598 | break;
|
599 | 599 | default:
|
600 | 600 | if (att[i]->attlen < sizeof(int32))
|
601 |
| - elog(ABORT, |
| 601 | + elog(ERROR, |
602 | 602 | "fastgetattr2: attribute %d has len %d",
|
603 | 603 | i, att[i]->attlen);
|
604 | 604 | if (att[i]->attalign == 'd')
|
@@ -657,7 +657,7 @@ fastgetattr(HeapTuple tup,
|
657 | 657 | break;
|
658 | 658 | default:
|
659 | 659 | if (att[attnum]->attlen < sizeof(int32))
|
660 |
| - elog(ABORT, "fastgetattr3: attribute %d has len %d", |
| 660 | + elog(ERROR, "fastgetattr3: attribute %d has len %d", |
661 | 661 | attnum, att[attnum]->attlen);
|
662 | 662 | if (att[attnum]->attalign == 'd')
|
663 | 663 | off = DOUBLEALIGN(off);
|
@@ -686,7 +686,7 @@ heap_copytuple(HeapTuple tuple)
|
686 | 686 | /* XXX For now, just prevent an undetectable executor related error */
|
687 | 687 | if (tuple->t_len > MAXTUPLEN)
|
688 | 688 | {
|
689 |
| - elog(ABORT, "palloctup: cannot handle length %d tuples", |
| 689 | + elog(ERROR, "palloctup: cannot handle length %d tuples", |
690 | 690 | tuple->t_len);
|
691 | 691 | }
|
692 | 692 |
|
@@ -773,7 +773,7 @@ heap_formtuple(TupleDesc tupleDescriptor,
|
773 | 773 | }
|
774 | 774 |
|
775 | 775 | if (numberOfAttributes > MaxHeapAttributeNumber)
|
776 |
| - elog(ABORT, "heap_formtuple: numberOfAttributes of %d > %d", |
| 776 | + elog(ERROR, "heap_formtuple: numberOfAttributes of %d > %d", |
777 | 777 | numberOfAttributes, MaxHeapAttributeNumber);
|
778 | 778 |
|
779 | 779 | if (hasnull)
|
@@ -883,7 +883,7 @@ heap_modifytuple(HeapTuple tuple,
|
883 | 883 | }
|
884 | 884 | else if (repl[attoff] != 'r')
|
885 | 885 | {
|
886 |
| - elog(ABORT, "heap_modifytuple: repl is \\%3d", repl[attoff]); |
| 886 | + elog(ERROR, "heap_modifytuple: repl is \\%3d", repl[attoff]); |
887 | 887 |
|
888 | 888 | }
|
889 | 889 | else
|
|
0 commit comments