Change elog(WARN) to elog(ERROR) and elog(ABORT).
authorBruce Momjian
Mon, 5 Jan 1998 03:35:55 +0000 (03:35 +0000)
committerBruce Momjian
Mon, 5 Jan 1998 03:35:55 +0000 (03:35 +0000)
188 files changed:
src/backend/access/common/heaptuple.c
src/backend/access/common/indextuple.c
src/backend/access/common/printtup.c
src/backend/access/common/tupdesc.c
src/backend/access/gist/gist.c
src/backend/access/gist/gistscan.c
src/backend/access/hash/hashinsert.c
src/backend/access/hash/hashovfl.c
src/backend/access/hash/hashpage.c
src/backend/access/hash/hashscan.c
src/backend/access/hash/hashutil.c
src/backend/access/heap/heapam.c
src/backend/access/heap/hio.c
src/backend/access/index/genam.c
src/backend/access/index/indexam.c
src/backend/access/index/istrat.c
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtscan.c
src/backend/access/nbtree/nbtsearch.c
src/backend/access/nbtree/nbtsort.c
src/backend/access/nbtree/nbtutils.c
src/backend/access/rtree/rtproc.c
src/backend/access/rtree/rtree.c
src/backend/access/rtree/rtscan.c
src/backend/access/transam/transam.c
src/backend/access/transam/transsup.c
src/backend/access/transam/varsup.c
src/backend/access/transam/xact.c
src/backend/bootstrap/bootparse.y
src/backend/bootstrap/bootstrap.c
src/backend/catalog/catalog.c
src/backend/catalog/heap.c
src/backend/catalog/index.c
src/backend/catalog/pg_aggregate.c
src/backend/catalog/pg_operator.c
src/backend/catalog/pg_proc.c
src/backend/catalog/pg_type.c
src/backend/commands/_deadcode/version.c
src/backend/commands/cluster.c
src/backend/commands/command.c
src/backend/commands/copy.c
src/backend/commands/creatinh.c
src/backend/commands/dbcommands.c
src/backend/commands/defind.c
src/backend/commands/define.c
src/backend/commands/proclang.c
src/backend/commands/recipe.c
src/backend/commands/remove.c
src/backend/commands/rename.c
src/backend/commands/sequence.c
src/backend/commands/trigger.c
src/backend/commands/user.c
src/backend/commands/vacuum.c
src/backend/commands/view.c
src/backend/executor/execAmi.c
src/backend/executor/execMain.c
src/backend/executor/execProcnode.c
src/backend/executor/execQual.c
src/backend/executor/execTuples.c
src/backend/executor/execUtils.c
src/backend/executor/nodeAgg.c
src/backend/executor/nodeHash.c
src/backend/executor/nodeIndexscan.c
src/backend/executor/nodeSort.c
src/backend/executor/nodeTee.c
src/backend/lib/stringinfo.c
src/backend/libpq/be-fsstubs.c
src/backend/libpq/be-pqexec.c
src/backend/libpq/pqcomm.c
src/backend/nodes/equalfuncs.c
src/backend/nodes/list.c
src/backend/nodes/read.c
src/backend/nodes/readfuncs.c
src/backend/optimizer/geqo/geqo_erx.c
src/backend/optimizer/geqo/geqo_eval.c
src/backend/optimizer/geqo/geqo_misc.c
src/backend/optimizer/path/predmig.c
src/backend/optimizer/path/prune.c
src/backend/optimizer/path/xfunc.c
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/plan/planmain.c
src/backend/optimizer/plan/planner.c
src/backend/optimizer/plan/setrefs.c
src/backend/optimizer/util/plancat.c
src/backend/parser/analyze.c
src/backend/parser/gram.y
src/backend/parser/keywords.c
src/backend/parser/parse_agg.c
src/backend/parser/parse_clause.c
src/backend/parser/parse_expr.c
src/backend/parser/parse_func.c
src/backend/parser/parse_node.c
src/backend/parser/parse_oper.c
src/backend/parser/parse_relation.c
src/backend/parser/parse_target.c
src/backend/parser/parse_type.c
src/backend/parser/scan.c
src/backend/parser/scan.l
src/backend/port/dynloader/linux.c
src/backend/rewrite/rewriteDefine.c
src/backend/rewrite/rewriteHandler.c
src/backend/rewrite/rewriteRemove.c
src/backend/rewrite/rewriteSupport.c
src/backend/storage/buffer/buf_init.c
src/backend/storage/buffer/buf_table.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/freelist.c
src/backend/storage/buffer/localbuf.c
src/backend/storage/file/fd.c
src/backend/storage/ipc/ipc.c
src/backend/storage/ipc/shmem.c
src/backend/storage/large_object/inv_api.c
src/backend/storage/lmgr/lmgr.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/multi.c
src/backend/storage/lmgr/proc.c
src/backend/storage/page/bufpage.c
src/backend/storage/smgr/md.c
src/backend/storage/smgr/smgr.c
src/backend/storage/smgr/smgrtype.c
src/backend/tcop/aclchk.c
src/backend/tcop/fastpath.c
src/backend/tcop/postgres.c
src/backend/tcop/pquery.c
src/backend/tcop/utility.c
src/backend/tcop/variable.c
src/backend/utils/adt/acl.c
src/backend/utils/adt/arrayfuncs.c
src/backend/utils/adt/bool.c
src/backend/utils/adt/cash.c
src/backend/utils/adt/chunk.c
src/backend/utils/adt/date.c
src/backend/utils/adt/datetime.c
src/backend/utils/adt/datum.c
src/backend/utils/adt/dt.c
src/backend/utils/adt/filename.c
src/backend/utils/adt/float.c
src/backend/utils/adt/geo_ops.c
src/backend/utils/adt/int.c
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/numutils.c
src/backend/utils/adt/oidname.c
src/backend/utils/adt/regexp.c
src/backend/utils/adt/regproc.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/adt/sets.c
src/backend/utils/adt/varchar.c
src/backend/utils/adt/varlena.c
src/backend/utils/cache/catcache.c
src/backend/utils/cache/fcache.c
src/backend/utils/cache/lsyscache.c
src/backend/utils/cache/relcache.c
src/backend/utils/cache/syscache.c
src/backend/utils/error/elog.c
src/backend/utils/fmgr/dfmgr.c
src/backend/utils/fmgr/fmgr.c
src/backend/utils/misc/database.c
src/backend/utils/sort/psort.c
src/include/utils/elog.h
src/test/regress/expected/abstime.out
src/test/regress/expected/alter_table.out
src/test/regress/expected/boolean.out
src/test/regress/expected/box.out
src/test/regress/expected/circle.out
src/test/regress/expected/datetime.out
src/test/regress/expected/errors.out
src/test/regress/expected/float4.out
src/test/regress/expected/float8.out
src/test/regress/expected/geometry.out
src/test/regress/expected/int2.out
src/test/regress/expected/int4.out
src/test/regress/expected/lseg.out
src/test/regress/expected/oid.out
src/test/regress/expected/oidint2.out
src/test/regress/expected/oidint4.out
src/test/regress/expected/oidname.out
src/test/regress/expected/path.out
src/test/regress/expected/point.out
src/test/regress/expected/polygon.out
src/test/regress/expected/reltime.out
src/test/regress/expected/strings.out
src/test/regress/expected/timespan.out
src/test/regress/expected/tinterval.out
src/test/regress/expected/triggers.out
src/test/regress/regress.c
src/tutorial/C-code/beard.c
src/tutorial/C-code/complex.c

index 263f29cb68eb0d848e4cb484a61e72bf9567f10b..48702bb8e1e40302f42a0e9a86c48094188e584d 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.28 1997/11/02 15:24:09 vadim Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.29 1998/01/05 03:28:57 momjian Exp $
  *
  * NOTES
  *   The old interface functions have been converted to macros
@@ -93,7 +93,7 @@ ComputeDataSize(TupleDesc tupleDesc,
                break;
            default:
                if (att[i]->attlen < sizeof(int32))
-                   elog(WARN, "ComputeDataSize: attribute %d has len %d",
+                   elog(ABORT, "ComputeDataSize: attribute %d has len %d",
                         i, att[i]->attlen);
                if (att[i]->attalign == 'd')
                    data_length = DOUBLEALIGN(data_length) + att[i]->attlen;
@@ -194,7 +194,7 @@ DataFill(char *data,
                break;
            default:
                if (att[i]->attlen < sizeof(int32))
-                   elog(WARN, "DataFill: attribute %d has len %d",
+                   elog(ABORT, "DataFill: attribute %d has len %d",
                         i, att[i]->attlen);
                if (att[i]->attalign == 'd')
                {
@@ -249,10 +249,10 @@ heap_attisnull(HeapTuple tup, int attnum)
                break;
 
            case 0:
-               elog(WARN, "heap_attisnull: zero attnum disallowed");
+               elog(ABORT, "heap_attisnull: zero attnum disallowed");
 
            default:
-               elog(WARN, "heap_attisnull: undefined negative attnum");
+               elog(ABORT, "heap_attisnull: undefined negative attnum");
        }
 
    return (0);
@@ -290,7 +290,7 @@ heap_sysattrlen(AttrNumber attno)
            return sizeof f->t_cmax;
 
        default:
-           elog(WARN, "sysattrlen: System attribute number %d unknown.", attno);
+           elog(ABORT, "sysattrlen: System attribute number %d unknown.", attno);
            return 0;
    }
 }
@@ -328,7 +328,7 @@ heap_sysattrbyval(AttrNumber attno)
            break;
        default:
            byval = true;
-           elog(WARN, "sysattrbyval: System attribute number %d unknown.",
+           elog(ABORT, "sysattrbyval: System attribute number %d unknown.",
                 attno);
            break;
    }
@@ -358,7 +358,7 @@ heap_getsysattr(HeapTuple tup, Buffer b, int attnum)
        case MaxCommandIdAttributeNumber:
            return ((Datum) (long) tup->t_cmax);
        default:
-           elog(WARN, "heap_getsysattr: undefined attnum %d", attnum);
+           elog(ABORT, "heap_getsysattr: undefined attnum %d", attnum);
    }
    return ((Datum) NULL);
 }
@@ -538,7 +538,7 @@ fastgetattr(HeapTuple tup,
                default:
                    if (att[j]->attlen < sizeof(int32))
                    {
-                       elog(WARN,
+                       elog(ABORT,
                             "fastgetattr: attribute %d has len %d",
                             j, att[j]->attlen);
                    }
@@ -598,7 +598,7 @@ fastgetattr(HeapTuple tup,
                    break;
                default:
                    if (att[i]->attlen < sizeof(int32))
-                       elog(WARN,
+                       elog(ABORT,
                             "fastgetattr2: attribute %d has len %d",
                             i, att[i]->attlen);
                    if (att[i]->attalign == 'd')
@@ -657,7 +657,7 @@ fastgetattr(HeapTuple tup,
                break;
            default:
                if (att[attnum]->attlen < sizeof(int32))
-                   elog(WARN, "fastgetattr3: attribute %d has len %d",
+                   elog(ABORT, "fastgetattr3: attribute %d has len %d",
                         attnum, att[attnum]->attlen);
                if (att[attnum]->attalign == 'd')
                    off = DOUBLEALIGN(off);
@@ -686,7 +686,7 @@ heap_copytuple(HeapTuple tuple)
    /* XXX For now, just prevent an undetectable executor related error */
    if (tuple->t_len > MAXTUPLEN)
    {
-       elog(WARN, "palloctup: cannot handle length %d tuples",
+       elog(ABORT, "palloctup: cannot handle length %d tuples",
             tuple->t_len);
    }
 
@@ -773,7 +773,7 @@ heap_formtuple(TupleDesc tupleDescriptor,
    }
 
    if (numberOfAttributes > MaxHeapAttributeNumber)
-       elog(WARN, "heap_formtuple: numberOfAttributes of %d > %d",
+       elog(ABORT, "heap_formtuple: numberOfAttributes of %d > %d",
             numberOfAttributes, MaxHeapAttributeNumber);
 
    if (hasnull)
@@ -883,7 +883,7 @@ heap_modifytuple(HeapTuple tuple,
        }
        else if (repl[attoff] != 'r')
        {
-           elog(WARN, "heap_modifytuple: repl is \\%3d", repl[attoff]);
+           elog(ABORT, "heap_modifytuple: repl is \\%3d", repl[attoff]);
 
        }
        else
index 273de3b4c458f808c4b4ec9fb6d52bbb6d4fac40..baa295b91ba587d63d427c07a0ab98d5a3d2a295 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.20 1997/11/02 15:24:11 vadim Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.21 1998/01/05 03:28:59 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -56,7 +56,7 @@ index_formtuple(TupleDesc tupleDescriptor,
    int         numberOfAttributes = tupleDescriptor->natts;
 
    if (numberOfAttributes > MaxIndexAttributeNumber)
-       elog(WARN, "index_formtuple: numberOfAttributes of %d > %d",
+       elog(ABORT, "index_formtuple: numberOfAttributes of %d > %d",
             numberOfAttributes, MaxIndexAttributeNumber);
 
 
@@ -103,7 +103,7 @@ index_formtuple(TupleDesc tupleDescriptor,
     */
 
    if (size & 0xE000)
-       elog(WARN, "index_formtuple: data takes %d bytes: too big", size);
+       elog(ABORT, "index_formtuple: data takes %d bytes: too big", size);
 
 
    infomask |= size;
@@ -314,7 +314,7 @@ fastgetiattr(IndexTuple tup,
                        off = (att[j]->attalign == 'd') ?
                            DOUBLEALIGN(off) : LONGALIGN(off);
                    else
-                       elog(WARN, "fastgetiattr: attribute %d has len %d",
+                       elog(ABORT, "fastgetiattr: attribute %d has len %d",
                             j, att[j]->attlen);
                    break;
 
@@ -382,7 +382,7 @@ fastgetiattr(IndexTuple tup,
                            DOUBLEALIGN(off) + att[i]->attlen :
                            LONGALIGN(off) + att[i]->attlen;
                    else
-                       elog(WARN, "fastgetiattr2: attribute %d has len %d",
+                       elog(ABORT, "fastgetiattr2: attribute %d has len %d",
                             i, att[i]->attlen);
 
                    break;
@@ -409,7 +409,7 @@ fastgetiattr(IndexTuple tup,
                break;
            default:
                if (att[attnum]->attlen < sizeof(int32))
-                   elog(WARN, "fastgetattr3: attribute %d has len %d",
+                   elog(ABORT, "fastgetattr3: attribute %d has len %d",
                         attnum, att[attnum]->attlen);
                if (att[attnum]->attalign == 'd')
                    off = DOUBLEALIGN(off);
index b116b309fb7200649c34831cccbec914f71c537a..23fa7204eff3baa8faeb3959c13121a6b4c91917 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.20 1997/12/08 04:42:43 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.21 1998/01/05 03:29:00 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -45,7 +45,7 @@ typtoout(Oid type)
        return ((Oid)
                ((TypeTupleForm) GETSTRUCT(typeTuple))->typoutput);
 
-   elog(WARN, "typtoout: Cache lookup of type %d failed", type);
+   elog(ABORT, "typtoout: Cache lookup of type %d failed", type);
    return (InvalidOid);
 }
 
@@ -62,7 +62,7 @@ gettypelem(Oid type)
        return ((Oid)
                ((TypeTupleForm) GETSTRUCT(typeTuple))->typelem);
 
-   elog(WARN, "typtoout: Cache lookup of type %d failed", type);
+   elog(ABORT, "typtoout: Cache lookup of type %d failed", type);
    return (InvalidOid);
 }
 
index 1a8d2975cc4ccb8618e3d2244b1f553a01b67565..9c04bcc98c82f6aeac378c5b31e0bfc5aae9ece7 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.29 1997/11/25 21:58:35 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.30 1998/01/05 03:29:01 momjian Exp $
  *
  * NOTES
  *   some of the executor utility code such as "ExecTypeFromTL" should be
@@ -321,7 +321,7 @@ TupleDescInitEntry(TupleDesc desc,
     *  RelationNameCreateHeapRelation() calls BuildDesc() which
     *  calls this routine and since EMP does not exist yet, the
     *  system cache lookup below fails.  That's fine, but rather
-    *  then doing a elog(WARN) we just leave that information
+    *  then doing a elog(ABORT) we just leave that information
     *  uninitialized, return false, then fix things up later.
     *  -cim 6/14/90
     * ----------------
@@ -508,7 +508,7 @@ BuildDescForRelation(List *schema, char *relname)
                TupleDescMakeSelfReference(desc, attnum, relname);
            }
            else
-               elog(WARN, "DefineRelation: no such type %s",
+               elog(ABORT, "DefineRelation: no such type %s",
                     typename);
        }
 
index 34a5122742ab7a6338012f21879a597d1e8ae5f8..db4cb4358ccc33e9a54de67e7c7baef0ce316d80 100644 (file)
@@ -130,7 +130,7 @@ gistbuild(Relation heap,
     */
 
    if (oldPred == NULL && (nb = RelationGetNumberOfBlocks(index)) != 0)
-       elog(WARN, "%.16s already contains data", &(index->rd_rel->relname.data[0]));
+       elog(ABORT, "%.16s already contains data", &(index->rd_rel->relname.data[0]));
 
    /* initialize the root page (if this is a new index) */
    if (oldPred == NULL)
@@ -1182,7 +1182,7 @@ initGISTstate(GISTSTATE *giststate, Relation index)
                               0, 0, 0);
    itupform = (IndexTupleForm) GETSTRUCT(htup);
    if (!HeapTupleIsValid(htup))
-       elog(WARN, "initGISTstate: index %d not found", index->rd_id);
+       elog(ABORT, "initGISTstate: index %d not found", index->rd_id);
    giststate->haskeytype = itupform->indhaskeytype;
    if (giststate->haskeytype)
    {
@@ -1193,7 +1193,7 @@ initGISTstate(GISTSTATE *giststate, Relation index)
                                   0, 0);
        if (!HeapTupleIsValid(htup))
        {
-           elog(WARN, "initGISTstate: no attribute tuple %d %d",
+           elog(ABORT, "initGISTstate: no attribute tuple %d %d",
                 itupform->indexrelid, FirstOffsetNumber);
            return;
        }
index ee5d93e0565d69c2d3dfa74ee715c2887baf26ba..11335dc218021d28b3937a16f6de5928d68ee7e3 100644 (file)
@@ -83,7 +83,7 @@ gistrescan(IndexScanDesc s, bool fromEnd, ScanKey key)
 
    if (!IndexScanIsValid(s))
    {
-       elog(WARN, "gistrescan: invalid scan.");
+       elog(ABORT, "gistrescan: invalid scan.");
        return;
    }
 
@@ -281,7 +281,7 @@ gistdropscan(IndexScanDesc s)
    }
 
    if (l == (GISTScanList) NULL)
-       elog(WARN, "GiST scan list corrupted -- cannot find 0x%lx", s);
+       elog(ABORT, "GiST scan list corrupted -- cannot find 0x%lx", s);
 
    if (prev == (GISTScanList) NULL)
        GISTScans = l->gsl_next;
@@ -397,7 +397,7 @@ adjustiptr(IndexScanDesc s,
                    break;
 
                default:
-                   elog(WARN, "Bad operation in GiST scan adjust: %d", op);
+                   elog(ABORT, "Bad operation in GiST scan adjust: %d", op);
            }
        }
    }
index f76aba417940783608a884eccaed248afc4af249..87d7fca798ff9a9854ccbebd251616083dc516b2 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/hash/hashinsert.c,v 1.10 1997/09/08 02:20:16 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/hash/hashinsert.c,v 1.11 1998/01/05 03:29:15 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -49,7 +49,7 @@ _hash_doinsert(Relation rel, HashItem hitem)
    /* we need a scan key to do our search, so build one */
    itup = &(hitem->hash_itup);
    if ((natts = rel->rd_rel->relnatts) != 1)
-       elog(WARN, "Hash indices valid for only one index key.");
+       elog(ABORT, "Hash indices valid for only one index key.");
    itup_scankey = _hash_mkscankey(rel, itup, metap);
 
    /*
@@ -167,7 +167,7 @@ _hash_insertonpg(Relation rel,
            if (PageGetFreeSpace(page) < itemsz)
            {
                /* it doesn't fit on an empty page -- give up */
-               elog(WARN, "hash item too large");
+               elog(ABORT, "hash item too large");
            }
        }
        _hash_checkpage(page, LH_OVERFLOW_PAGE);
index 03e479cdcc64b2c9f4b04868b5f33a08b4f90851..a86a72f974b2ac7297a114bd1b094aeb3cdf812c 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.13 1997/09/18 20:19:43 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.14 1998/01/05 03:29:20 momjian Exp $
  *
  * NOTES
  *   Overflow pages look like ordinary relation pages.
@@ -65,7 +65,7 @@ _hash_addovflpage(Relation rel, Buffer *metabufp, Buffer buf)
    oaddr = _hash_getovfladdr(rel, metabufp);
    if (oaddr == InvalidOvflAddress)
    {
-       elog(WARN, "_hash_addovflpage: problem with _hash_getovfladdr.");
+       elog(ABORT, "_hash_addovflpage: problem with _hash_getovfladdr.");
    }
    ovflblkno = OADDR_TO_BLKNO(OADDR_OF(SPLITNUM(oaddr), OPAGENUM(oaddr)));
    Assert(BlockNumberIsValid(ovflblkno));
@@ -172,7 +172,7 @@ _hash_getovfladdr(Relation rel, Buffer *metabufp)
    {
        if (++splitnum >= NCACHED)
        {
-           elog(WARN, OVMSG);
+           elog(ABORT, OVMSG);
        }
        metap->OVFL_POINT = splitnum;
        metap->SPARES[splitnum] = metap->SPARES[splitnum - 1];
@@ -190,7 +190,7 @@ _hash_getovfladdr(Relation rel, Buffer *metabufp)
        free_page++;
        if (free_page >= NCACHED)
        {
-           elog(WARN, OVMSG);
+           elog(ABORT, OVMSG);
        }
 
        /*
@@ -206,7 +206,7 @@ _hash_getovfladdr(Relation rel, Buffer *metabufp)
        if (_hash_initbitmap(rel, metap, OADDR_OF(splitnum, offset),
                             1, free_page))
        {
-           elog(WARN, "overflow_page: problem with _hash_initbitmap.");
+           elog(ABORT, "overflow_page: problem with _hash_initbitmap.");
        }
        metap->SPARES[splitnum]++;
        offset++;
@@ -214,7 +214,7 @@ _hash_getovfladdr(Relation rel, Buffer *metabufp)
        {
            if (++splitnum >= NCACHED)
            {
-               elog(WARN, OVMSG);
+               elog(ABORT, OVMSG);
            }
            metap->OVFL_POINT = splitnum;
            metap->SPARES[splitnum] = metap->SPARES[splitnum - 1];
@@ -262,7 +262,7 @@ found:
    offset = (i ? bit - metap->SPARES[i - 1] : bit);
    if (offset >= SPLITMASK)
    {
-       elog(WARN, OVMSG);
+       elog(ABORT, OVMSG);
    }
 
    /* initialize this page */
index 9de4f28f4284e686e1bddfa4b19aab5212cccd59..f819ad82deceeb9feed1ae83b5033d144ca9c40e 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/hash/hashpage.c,v 1.13 1997/09/18 20:19:46 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/hash/hashpage.c,v 1.14 1998/01/05 03:29:22 momjian Exp $
  *
  * NOTES
  *   Postgres hash pages look like ordinary relation pages.  The opaque
@@ -85,7 +85,7 @@ _hash_metapinit(Relation rel)
 
    if ((nblocks = RelationGetNumberOfBlocks(rel)) != 0)
    {
-       elog(WARN, "Cannot initialize non-empty hash table %s",
+       elog(ABORT, "Cannot initialize non-empty hash table %s",
             RelationGetRelationName(rel));
    }
 
@@ -146,7 +146,7 @@ _hash_metapinit(Relation rel)
     * created the first two buckets above.
     */
    if (_hash_initbitmap(rel, metap, OADDR_OF(lg2nelem, 1), lg2nelem + 1, 0))
-       elog(WARN, "Problem with _hash_initbitmap.");
+       elog(ABORT, "Problem with _hash_initbitmap.");
 
    /* all done */
    _hash_wrtnorelbuf(rel, metabuf);
@@ -192,7 +192,7 @@ _hash_getbuf(Relation rel, BlockNumber blkno, int access)
 
    if (blkno == P_NEW)
    {
-       elog(WARN, "_hash_getbuf: internal error: hash AM does not use P_NEW");
+       elog(ABORT, "_hash_getbuf: internal error: hash AM does not use P_NEW");
    }
    switch (access)
    {
@@ -201,7 +201,7 @@ _hash_getbuf(Relation rel, BlockNumber blkno, int access)
            _hash_setpagelock(rel, blkno, access);
            break;
        default:
-           elog(WARN, "_hash_getbuf: invalid access (%d) on new blk: %s",
+           elog(ABORT, "_hash_getbuf: invalid access (%d) on new blk: %s",
                 access, RelationGetRelationName(rel));
            break;
    }
@@ -228,7 +228,7 @@ _hash_relbuf(Relation rel, Buffer buf, int access)
            _hash_unsetpagelock(rel, blkno, access);
            break;
        default:
-           elog(WARN, "_hash_relbuf: invalid access (%d) on blk %x: %s",
+           elog(ABORT, "_hash_relbuf: invalid access (%d) on blk %x: %s",
                 access, blkno, RelationGetRelationName(rel));
    }
 
@@ -287,7 +287,7 @@ _hash_chgbufaccess(Relation rel,
            _hash_relbuf(rel, *bufp, from_access);
            break;
        default:
-           elog(WARN, "_hash_chgbufaccess: invalid access (%d) on blk %x: %s",
+           elog(ABORT, "_hash_chgbufaccess: invalid access (%d) on blk %x: %s",
                 from_access, blkno, RelationGetRelationName(rel));
            break;
    }
@@ -335,7 +335,7 @@ _hash_setpagelock(Relation rel,
                RelationSetSingleRLockPage(rel, &iptr);
                break;
            default:
-               elog(WARN, "_hash_setpagelock: invalid access (%d) on blk %x: %s",
+               elog(ABORT, "_hash_setpagelock: invalid access (%d) on blk %x: %s",
                     access, blkno, RelationGetRelationName(rel));
                break;
        }
@@ -362,7 +362,7 @@ _hash_unsetpagelock(Relation rel,
                RelationUnsetSingleRLockPage(rel, &iptr);
                break;
            default:
-               elog(WARN, "_hash_unsetpagelock: invalid access (%d) on blk %x: %s",
+               elog(ABORT, "_hash_unsetpagelock: invalid access (%d) on blk %x: %s",
                     access, blkno, RelationGetRelationName(rel));
                break;
        }
@@ -546,7 +546,7 @@ _hash_splitpage(Relation rel,
        _hash_checkpage(opage, LH_OVERFLOW_PAGE);
        if (PageIsEmpty(opage))
        {
-           elog(WARN, "_hash_splitpage: empty overflow page %d", oblkno);
+           elog(ABORT, "_hash_splitpage: empty overflow page %d", oblkno);
        }
        oopaque = (HashPageOpaque) PageGetSpecialPointer(opage);
    }
@@ -588,7 +588,7 @@ _hash_splitpage(Relation rel,
                /* we're guaranteed that an ovfl page has at least 1 tuple */
                if (PageIsEmpty(opage))
                {
-                   elog(WARN, "_hash_splitpage: empty ovfl page %d!",
+                   elog(ABORT, "_hash_splitpage: empty ovfl page %d!",
                         oblkno);
                }
                ooffnum = FirstOffsetNumber;
@@ -685,7 +685,7 @@ _hash_splitpage(Relation rel,
                oopaque = (HashPageOpaque) PageGetSpecialPointer(opage);
                if (PageIsEmpty(opage))
                {
-                   elog(WARN, "_hash_splitpage: empty overflow page %d",
+                   elog(ABORT, "_hash_splitpage: empty overflow page %d",
                         oblkno);
                }
                ooffnum = FirstOffsetNumber;
index 777fb3a5cfadf9e9b2dbdcda92eea74920ed22c2..5a708dd22989defab937d1a9af1a977ae93f3931 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/hash/hashscan.c,v 1.11 1997/09/08 21:40:48 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/hash/hashscan.c,v 1.12 1998/01/05 03:29:24 momjian Exp $
  *
  * NOTES
  *   Because we can be doing an index scan on a relation while we
@@ -76,7 +76,7 @@ _hash_dropscan(IndexScanDesc scan)
    }
 
    if (chk == (HashScanList) NULL)
-       elog(WARN, "hash scan list trashed; can't find 0x%lx", scan);
+       elog(ABORT, "hash scan list trashed; can't find 0x%lx", scan);
 
    if (last == (HashScanList) NULL)
        HashScans = chk->hashsl_next;
index 573c6c2dd4fddf7c3a9c33d3456b0cccc477f0d3..2540e1f049e9f3b12ca7f3c306cc9317cef5c7b5 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/hash/hashutil.c,v 1.11 1997/09/08 02:20:25 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/hash/hashutil.c,v 1.12 1998/01/05 03:29:26 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -79,7 +79,7 @@ _hash_formitem(IndexTuple itup)
 
    /* disallow nulls in hash keys */
    if (itup->t_info & INDEX_NULL_MASK)
-       elog(WARN, "hash indices cannot include null keys");
+       elog(ABORT, "hash indices cannot include null keys");
 
    /* make a copy of the index tuple with room for the sequence number */
    tuplen = IndexTupleSize(itup);
index fc3ba7b273fdef665b946e94fb829e821db09181..d31ccde6a73106e7c2cb1b1b92a704c9c2872259 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.23 1997/11/21 18:03:55 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.24 1998/01/05 03:29:29 momjian Exp $
  *
  *
  * INTERFACE ROUTINES
@@ -295,7 +295,7 @@ heapgettup(Relation relation,
 
 #ifndef NO_BUFFERISVALID
        if (!BufferIsValid(*b))
-           elog(WARN, "heapgettup: failed ReadBuffer");
+           elog(ABORT, "heapgettup: failed ReadBuffer");
 #endif
 
        dp = (Page) BufferGetPage(*b);
@@ -334,7 +334,7 @@ heapgettup(Relation relation,
 #ifndef NO_BUFFERISVALID
        if (!BufferIsValid(*b))
        {
-           elog(WARN, "heapgettup: failed ReadBuffer");
+           elog(ABORT, "heapgettup: failed ReadBuffer");
        }
 #endif
 
@@ -381,7 +381,7 @@ heapgettup(Relation relation,
 #ifndef NO_BUFFERISVALID
        if (!BufferIsValid(*b))
        {
-           elog(WARN, "heapgettup: failed ReadBuffer");
+           elog(ABORT, "heapgettup: failed ReadBuffer");
        }
 #endif
 
@@ -477,7 +477,7 @@ heapgettup(Relation relation,
 #ifndef NO_BUFFERISVALID
        if (!BufferIsValid(*b))
        {
-           elog(WARN, "heapgettup: failed ReadBuffer");
+           elog(ABORT, "heapgettup: failed ReadBuffer");
        }
 #endif
        dp = (Page) BufferGetPage(*b);
@@ -545,7 +545,7 @@ heap_open(Oid relationId)
 
    if (RelationIsValid(r) && r->rd_rel->relkind == RELKIND_INDEX)
    {
-       elog(WARN, "%s is an index relation", r->rd_rel->relname.data);
+       elog(ABORT, "%s is an index relation", r->rd_rel->relname.data);
    }
 
    return (r);
@@ -574,7 +574,7 @@ heap_openr(char *relationName)
 
    if (RelationIsValid(r) && r->rd_rel->relkind == RELKIND_INDEX)
    {
-       elog(WARN, "%s is an index relation", r->rd_rel->relname.data);
+       elog(ABORT, "%s is an index relation", r->rd_rel->relname.data);
    }
 
    return (r);
@@ -626,7 +626,7 @@ heap_beginscan(Relation relation,
     * ----------------
     */
    if (RelationIsValid(relation) == false)
-       elog(WARN, "heap_beginscan: !RelationIsValid(relation)");
+       elog(ABORT, "heap_beginscan: !RelationIsValid(relation)");
 
    /* ----------------
     * set relation level read lock
@@ -808,7 +808,7 @@ heap_getnext(HeapScanDesc scandesc,
     * ----------------
     */
    if (sdesc == NULL)
-       elog(WARN, "heap_getnext: NULL relscan");
+       elog(ABORT, "heap_getnext: NULL relscan");
 
    /* ----------------
     *  initialize return buffer to InvalidBuffer
@@ -1051,7 +1051,7 @@ heap_fetch(Relation relation,
 #ifndef NO_BUFFERISVALID
    if (!BufferIsValid(buffer))
    {
-       elog(WARN, "heap_fetch: %s relation: ReadBuffer(%lx) failed",
+       elog(ABORT, "heap_fetch: %s relation: ReadBuffer(%lx) failed",
             &relation->rd_rel->relname, (long) tid);
    }
 #endif
@@ -1216,7 +1216,7 @@ heap_delete(Relation relation, ItemPointer tid)
 #ifndef NO_BUFFERISVALID
    if (!BufferIsValid(b))
    {                           /* XXX L_SH better ??? */
-       elog(WARN, "heap_delete: failed ReadBuffer");
+       elog(ABORT, "heap_delete: failed ReadBuffer");
    }
 #endif                         /* NO_BUFFERISVALID */
 
@@ -1249,7 +1249,7 @@ heap_delete(Relation relation, ItemPointer tid)
        /* XXX call something else */
        ReleaseBuffer(b);
 
-       elog(WARN, "heap_delete: (am)invalid tid");
+       elog(ABORT, "heap_delete: (am)invalid tid");
    }
 
    /* ----------------
@@ -1329,7 +1329,7 @@ heap_replace(Relation relation, ItemPointer otid, HeapTuple tup)
    if (!BufferIsValid(buffer))
    {
        /* XXX L_SH better ??? */
-       elog(WARN, "amreplace: failed ReadBuffer");
+       elog(ABORT, "amreplace: failed ReadBuffer");
    }
 #endif                         /* NO_BUFFERISVALID */
 
@@ -1385,7 +1385,7 @@ heap_replace(Relation relation, ItemPointer otid, HeapTuple tup)
    if (!tuple)
    {
        ReleaseBuffer(buffer);
-       elog(WARN, "heap_replace: (am)invalid otid");
+       elog(ABORT, "heap_replace: (am)invalid otid");
    }
 
    /* XXX order problems if not atomic assignment ??? */
index 21202b15376da79ff135939ee20a835f4f58fc8f..41e3b9e45db0f38f6a3b758b5d61f5e0fe9ec973 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Id: hio.c,v 1.11 1997/09/08 02:20:30 momjian Exp $
+ *   $Id: hio.c,v 1.12 1998/01/05 03:29:30 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -60,7 +60,7 @@ RelationPutHeapTuple(Relation relation,
 #ifndef NO_BUFFERISVALID
    if (!BufferIsValid(buffer))
    {
-       elog(WARN, "RelationPutHeapTuple: no buffer for %ld in %s",
+       elog(ABORT, "RelationPutHeapTuple: no buffer for %ld in %s",
             blockIndex, &relation->rd_rel->relname);
    }
 #endif
@@ -157,7 +157,7 @@ RelationPutHeapTupleAtEnd(Relation relation, HeapTuple tuple)
        PageInit(pageHeader, BufferGetPageSize(buffer), 0);
 
        if (len > PageGetFreeSpace(pageHeader))
-           elog(WARN, "Tuple is too big: size %d", len);
+           elog(ABORT, "Tuple is too big: size %d", len);
    }
 
    offnum = PageAddItem((Page) pageHeader, (Item) tuple,
index 83655b7d61879243b7cb7cb94632884ddcdc3414..f503326e99f68d97123a703dbb75d5d69d65888d 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/index/genam.c,v 1.9 1997/09/08 02:20:33 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/index/genam.c,v 1.10 1998/01/05 03:29:32 momjian Exp $
  *
  * NOTES
  *   many of the old access method routines have been turned into
@@ -101,7 +101,7 @@ RelationGetIndexScan(Relation relation,
    IndexScanDesc scan;
 
    if (!RelationIsValid(relation))
-       elog(WARN, "RelationGetIndexScan: relation invalid");
+       elog(ABORT, "RelationGetIndexScan: relation invalid");
 
    scan = (IndexScanDesc) palloc(sizeof(IndexScanDescData));
 
@@ -150,7 +150,7 @@ IndexScanRestart(IndexScanDesc scan,
                 ScanKey key)
 {
    if (!IndexScanIsValid(scan))
-       elog(WARN, "IndexScanRestart: invalid scan");
+       elog(ABORT, "IndexScanRestart: invalid scan");
 
    ItemPointerSetInvalid(&scan->previousItemData);
    ItemPointerSetInvalid(&scan->currentItemData);
@@ -191,7 +191,7 @@ void
 IndexScanEnd(IndexScanDesc scan)
 {
    if (!IndexScanIsValid(scan))
-       elog(WARN, "IndexScanEnd: invalid scan");
+       elog(ABORT, "IndexScanEnd: invalid scan");
 
    pfree(scan);
 }
@@ -274,7 +274,7 @@ void
 IndexScanRestorePosition(IndexScanDesc scan)
 {
    if (scan->flags & ScanUnmarked)
-       elog(WARN, "IndexScanRestorePosition: no mark to restore");
+       elog(ABORT, "IndexScanRestorePosition: no mark to restore");
 
    scan->previousItemData = scan->previousMarkData;
    scan->currentItemData = scan->currentMarkData;
index d28b79e202b37c371575f803d38ef4b2610d814e..16d57de0b374a3baade2b43511f081f3a9569fbf 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.17 1997/09/12 04:07:15 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.18 1998/01/05 03:29:34 momjian Exp $
  *
  * INTERFACE ROUTINES
  *     index_open      - open an index relation by relationId
@@ -103,13 +103,13 @@ Assert(RelationIsValid(relation)); \
 #define GET_REL_PROCEDURE(x,y) \
         procedure = relation->rd_am->y; \
         if (! RegProcedureIsValid(procedure)) \
-        elog(WARN, "index_%s: invalid %s regproc", \
+        elog(ABORT, "index_%s: invalid %s regproc", \
              CppAsString(x), CppAsString(y))
 
 #define GET_SCAN_PROCEDURE(x,y) \
         procedure = scan->relation->rd_am->y; \
         if (! RegProcedureIsValid(procedure)) \
-        elog(WARN, "index_%s: invalid %s regproc", \
+        elog(ABORT, "index_%s: invalid %s regproc", \
              CppAsString(x), CppAsString(y))
 
 
index 36693592c46b400b07609d3332dcab76376f747e..4a5c1da3b0ef05e6debb1301b521610423999572 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.13 1997/11/20 23:20:07 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.14 1998/01/05 03:29:38 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -349,7 +349,7 @@ RelationGetStrategy(Relation relation,
    {
        if (!StrategyNumberIsValid(strategy))
        {
-           elog(WARN, "RelationGetStrategy: corrupted evaluation");
+           elog(ABORT, "RelationGetStrategy: corrupted evaluation");
        }
    }
 
@@ -481,7 +481,7 @@ RelationInvokeStrategy(Relation relation,
        }
    }
 
-   elog(WARN, "RelationInvokeStrategy: cannot evaluate strategy %d",
+   elog(ABORT, "RelationInvokeStrategy: cannot evaluate strategy %d",
         strategy);
 
    /* not reached, just to make compiler happy */
@@ -514,7 +514,7 @@ OperatorRelationFillScanKeyEntry(Relation operatorRelation,
    tuple = heap_getnext(scan, false, (Buffer *) NULL);
    if (!HeapTupleIsValid(tuple))
    {
-       elog(WARN, "OperatorObjectIdFillScanKeyEntry: unknown operator %lu",
+       elog(ABORT, "OperatorObjectIdFillScanKeyEntry: unknown operator %lu",
             (uint32) operatorObjectId);
    }
 
@@ -525,7 +525,7 @@ OperatorRelationFillScanKeyEntry(Relation operatorRelation,
 
    if (!RegProcedureIsValid(entry->sk_procedure))
    {
-       elog(WARN,
+       elog(ABORT,
        "OperatorObjectIdFillScanKeyEntry: no procedure for operator %lu",
             (uint32) operatorObjectId);
    }
@@ -567,7 +567,7 @@ IndexSupportInitialize(IndexStrategy indexStrategy,
    scan = heap_beginscan(relation, false, false, 1, entry);
    tuple = heap_getnext(scan, 0, (Buffer *) NULL);
    if (!HeapTupleIsValid(tuple))
-       elog(WARN, "IndexSupportInitialize: corrupted catalogs");
+       elog(ABORT, "IndexSupportInitialize: corrupted catalogs");
 
    /*
     * XXX note that the following assumes the INDEX tuple is well formed
@@ -583,7 +583,7 @@ IndexSupportInitialize(IndexStrategy indexStrategy,
        {
            if (attributeIndex == 0)
            {
-               elog(WARN, "IndexSupportInitialize: no pg_index tuple");
+               elog(ABORT, "IndexSupportInitialize: no pg_index tuple");
            }
            break;
        }
index d216b89f7ec1c6503b846a1f036811eeda18579e..c57c1e6f76759971e73aaeee6a15fb7bc5e11417 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.22 1997/12/09 01:40:30 thomas Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.23 1998/01/05 03:29:45 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -123,7 +123,7 @@ _bt_doinsert(Relation rel, BTItem btitem, bool index_is_unique, Relation heapRel
                htup = heap_fetch(heapRel, true, &(itup->t_tid), NULL);
                if (htup != (HeapTuple) NULL)
                {               /* it is a duplicate */
-                   elog(WARN, "Cannot insert a duplicate key into a unique index");
+                   elog(ABORT, "Cannot insert a duplicate key into a unique index");
                }
                /* get next offnum */
                if (offset < maxoff)
@@ -1442,7 +1442,7 @@ _bt_updateitem(Relation rel,
     * if(IndexTupleDSize(newItem->bti_itup) >
     * IndexTupleDSize(item->bti_itup)) { elog(NOTICE, "trying to
     * overwrite a smaller value with a bigger one in _bt_updateitem");
-    * elog(WARN, "this is not good."); }
+    * elog(ABORT, "this is not good."); }
     */
 
    oldIndexTuple = &(item->bti_itup);
index 5cb1279c74ab7c91f14194a25c401d8f943aa973..7e0f76398d3e1d70e1386d7e6e813e951a330883 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.13 1997/09/18 20:19:49 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.14 1998/01/05 03:29:50 momjian Exp $
  *
  * NOTES
  *    Postgres btree pages look like ordinary relation pages.  The opaque
@@ -97,7 +97,7 @@ _bt_metapinit(Relation rel)
 
    if ((nblocks = RelationGetNumberOfBlocks(rel)) != 0)
    {
-       elog(WARN, "Cannot initialize non-empty btree %s",
+       elog(ABORT, "Cannot initialize non-empty btree %s",
             RelationGetRelationName(rel));
    }
 
@@ -146,20 +146,20 @@ _bt_checkmeta(Relation rel)
    op = (BTPageOpaque) PageGetSpecialPointer(metap);
    if (!(op->btpo_flags & BTP_META))
    {
-       elog(WARN, "Invalid metapage for index %s",
+       elog(ABORT, "Invalid metapage for index %s",
             RelationGetRelationName(rel));
    }
    metad = BTPageGetMeta(metap);
 
    if (metad->btm_magic != BTREE_MAGIC)
    {
-       elog(WARN, "Index %s is not a btree",
+       elog(ABORT, "Index %s is not a btree",
             RelationGetRelationName(rel));
    }
 
    if (metad->btm_version != BTREE_VERSION)
    {
-       elog(WARN, "Version mismatch on %s:  version %d file, version %d code",
+       elog(ABORT, "Version mismatch on %s:  version %d file, version %d code",
             RelationGetRelationName(rel),
             metad->btm_version, BTREE_VERSION);
    }
@@ -204,13 +204,13 @@ _bt_getroot(Relation rel, int access)
 
    if (metad->btm_magic != BTREE_MAGIC)
    {
-       elog(WARN, "Index %s is not a btree",
+       elog(ABORT, "Index %s is not a btree",
             RelationGetRelationName(rel));
    }
 
    if (metad->btm_version != BTREE_VERSION)
    {
-       elog(WARN, "Version mismatch on %s:  version %d file, version %d code",
+       elog(ABORT, "Version mismatch on %s:  version %d file, version %d code",
             RelationGetRelationName(rel),
             metad->btm_version, BTREE_VERSION);
    }
index 7263a09dcf55163198eba14fc3c7793b4931040b..510c72d2c809813b16c910781c9ff22457493c85 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.10 1997/09/08 20:54:24 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.11 1998/01/05 03:29:52 momjian Exp $
  *
  *
  * NOTES
@@ -77,7 +77,7 @@ _bt_dropscan(IndexScanDesc scan)
    }
 
    if (chk == (BTScanList) NULL)
-       elog(WARN, "btree scan list trashed; can't find 0x%lx", scan);
+       elog(ABORT, "btree scan list trashed; can't find 0x%lx", scan);
 
    if (last == (BTScanList) NULL)
        BTScans = chk->btsl_next;
@@ -154,7 +154,7 @@ _bt_scandel(IndexScanDesc scan, int op, BlockNumber blkno, OffsetNumber offno)
                _bt_step(scan, &buf, BackwardScanDirection);
                break;
            default:
-               elog(WARN, "_bt_scandel: bad operation '%d'", op);
+               elog(ABORT, "_bt_scandel: bad operation '%d'", op);
                /* NOTREACHED */
        }
        so->btso_curbuf = buf;
@@ -179,7 +179,7 @@ _bt_scandel(IndexScanDesc scan, int op, BlockNumber blkno, OffsetNumber offno)
                _bt_step(scan, &buf, BackwardScanDirection);
                break;
            default:
-               elog(WARN, "_bt_scandel: bad operation '%d'", op);
+               elog(ABORT, "_bt_scandel: bad operation '%d'", op);
                /* NOTREACHED */
        }
        so->btso_mrkbuf = buf;
index 39a18ccc8a9c37684a4e01a9d4baf78a06df3edf..a0f6fa7b34a0fd74c3e0ad9c803dc8332be753f2 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsearch.c,v 1.27 1997/10/22 19:02:52 vadim Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsearch.c,v 1.28 1998/01/05 03:29:53 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -617,7 +617,7 @@ _bt_compare(Relation rel,
         */
        if (!P_RIGHTMOST(opaque))
        {
-           elog(WARN, "_bt_compare: invalid comparison to high key");
+           elog(ABORT, "_bt_compare: invalid comparison to high key");
        }
 
 #if 0
@@ -839,7 +839,7 @@ _bt_first(IndexScanDesc scan, ScanDirection dir)
    /* _bt_orderkeys disallows it, but it's place to add some code latter */
    if (so->keyData[0].sk_flags & SK_ISNULL)
    {
-       elog(WARN, "_bt_first: btree doesn't support is(not)null, yet");
+       elog(ABORT, "_bt_first: btree doesn't support is(not)null, yet");
        return ((RetrieveIndexResult) NULL);
    }
    proc = index_getprocid(rel, 1, BTORDER_PROC);
@@ -1331,7 +1331,7 @@ _bt_twostep(IndexScanDesc scan, Buffer *bufP, ScanDirection dir)
     * us up less often since they're only done by the vacuum daemon.
     */
 
-   elog(WARN, "btree synchronization error:  concurrent update botched scan");
+   elog(ABORT, "btree synchronization error:  concurrent update botched scan");
 
    return (false);
 }
@@ -1416,7 +1416,7 @@ _bt_endpoint(IndexScanDesc scan, ScanDirection dir)
    if (ScanDirectionIsForward(dir))
    {
        if (!P_LEFTMOST(opaque))/* non-leftmost page ? */
-           elog(WARN, "_bt_endpoint: leftmost page (%u) has not leftmost flag", blkno);
+           elog(ABORT, "_bt_endpoint: leftmost page (%u) has not leftmost flag", blkno);
        start = P_RIGHTMOST(opaque) ? P_HIKEY : P_FIRSTKEY;
 
        /*
@@ -1440,7 +1440,7 @@ _bt_endpoint(IndexScanDesc scan, ScanDirection dir)
        if (PageIsEmpty(page))
        {
            if (start != P_HIKEY)       /* non-rightmost page */
-               elog(WARN, "_bt_endpoint: non-rightmost page (%u) is empty", blkno);
+               elog(ABORT, "_bt_endpoint: non-rightmost page (%u) is empty", blkno);
 
            /*
             * It's left- & right- most page - root page, - and it's
@@ -1512,7 +1512,7 @@ _bt_endpoint(IndexScanDesc scan, ScanDirection dir)
    }
    else
    {
-       elog(WARN, "Illegal scan direction %d", dir);
+       elog(ABORT, "Illegal scan direction %d", dir);
    }
 
    btitem = (BTItem) PageGetItem(page, PageGetItemId(page, start));
index 2f1cc3aba8a8b0fbade86be948e4d065713158ce..1d17bd0eaa3f1e702b1004f704b5066d17428f26 100644 (file)
@@ -5,7 +5,7 @@
  *
  *
  * IDENTIFICATION
- *   $Id: nbtsort.c,v 1.24 1997/09/18 20:19:53 momjian Exp $
+ *   $Id: nbtsort.c,v 1.25 1998/01/05 03:29:55 momjian Exp $
  *
  * NOTES
  *
@@ -212,7 +212,7 @@ _bt_isortcmp(BTSortKey *k1, BTSortKey *k2)
    if (_bt_inspool->isunique && !equal_isnull)
    {
        _bt_spooldestroy((void *) _bt_inspool);
-       elog(WARN, "Cannot create unique index. Table contains non-unique values");
+       elog(ABORT, "Cannot create unique index. Table contains non-unique values");
    }
    return (0);                 /* 1 = 2 */
 }
@@ -333,7 +333,7 @@ _bt_pqadd(BTPriQueue *q, BTPriQueueElem *e)
 
    if (q->btpq_nelem >= MAXELEM)
    {
-       elog(WARN, "_bt_pqadd: queue overflow");
+       elog(ABORT, "_bt_pqadd: queue overflow");
    }
 
    child = q->btpq_nelem++;
@@ -426,7 +426,7 @@ _bt_tapecreate(char *fname)
 
    if (tape == (BTTapeBlock *) NULL)
    {
-       elog(WARN, "_bt_tapecreate: out of memory");
+       elog(ABORT, "_bt_tapecreate: out of memory");
    }
 
    tape->bttb_magic = BTTAPEMAGIC;
@@ -563,7 +563,7 @@ _bt_spoolinit(Relation index, int ntapes, bool isunique)
 
    if (btspool == (BTSpool *) NULL || fname == (char *) NULL)
    {
-       elog(WARN, "_bt_spoolinit: out of memory");
+       elog(ABORT, "_bt_spoolinit: out of memory");
    }
    MemSet((char *) btspool, 0, sizeof(BTSpool));
    btspool->bts_ntapes = ntapes;
@@ -577,7 +577,7 @@ _bt_spoolinit(Relation index, int ntapes, bool isunique)
    if (btspool->bts_itape == (BTTapeBlock **) NULL ||
        btspool->bts_otape == (BTTapeBlock **) NULL)
    {
-       elog(WARN, "_bt_spoolinit: out of memory");
+       elog(ABORT, "_bt_spoolinit: out of memory");
    }
 
    for (i = 0; i < ntapes; ++i)
index 1eef73fb3feeb8722756109d5313c0c8a04d66dc..33b5cc56d8930654bb44a804a33ad0cbfe711c39 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtutils.c,v 1.15 1997/09/18 20:19:55 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtutils.c,v 1.16 1998/01/05 03:29:56 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -119,7 +119,7 @@ _bt_orderkeys(Relation relation, BTScanOpaque so)
 
    cur = &key[0];
    if (cur->sk_attno != 1)
-       elog(WARN, "_bt_orderkeys: key(s) for attribute 1 missed");
+       elog(ABORT, "_bt_orderkeys: key(s) for attribute 1 missed");
 
    if (numberOfKeys == 1)
    {
@@ -159,7 +159,7 @@ _bt_orderkeys(Relation relation, BTScanOpaque so)
        {
            if (cur->sk_attno != attno + 1 && i < numberOfKeys)
            {
-               elog(WARN, "_bt_orderkeys: key(s) for attribute %d missed", attno + 1);
+               elog(ABORT, "_bt_orderkeys: key(s) for attribute %d missed", attno + 1);
            }
 
            /*
@@ -296,7 +296,7 @@ _bt_formitem(IndexTuple itup)
    /*
     * see comments in btbuild
     *
-    * if (itup->t_info & INDEX_NULL_MASK) elog(WARN, "btree indices cannot
+    * if (itup->t_info & INDEX_NULL_MASK) elog(ABORT, "btree indices cannot
     * include null keys");
     */
 
index d8c4ad42c3440f3f30080c77e68bb6400375cb1a..a78ea22892a96e18f69d3dfdc3e0da0d190bcfbe 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtproc.c,v 1.12 1997/09/18 20:19:56 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtproc.c,v 1.13 1998/01/05 03:29:59 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -29,7 +29,7 @@ rt_box_union(BOX *a, BOX *b)
    BOX        *n;
 
    if ((n = (BOX *) palloc(sizeof(*n))) == (BOX *) NULL)
-       elog(WARN, "Cannot allocate box for union");
+       elog(ABORT, "Cannot allocate box for union");
 
    n->high.x = Max(a->high.x, b->high.x);
    n->high.y = Max(a->high.y, b->high.y);
@@ -45,7 +45,7 @@ rt_box_inter(BOX *a, BOX *b)
    BOX        *n;
 
    if ((n = (BOX *) palloc(sizeof(*n))) == (BOX *) NULL)
-       elog(WARN, "Cannot allocate box for union");
+       elog(ABORT, "Cannot allocate box for union");
 
    n->high.x = Min(a->high.x, b->high.x);
    n->high.y = Min(a->high.y, b->high.y);
@@ -94,7 +94,7 @@ rt_poly_union(POLYGON *a, POLYGON *b)
    p = (POLYGON *) PALLOCTYPE(POLYGON);
 
    if (!PointerIsValid(p))
-       elog(WARN, "Cannot allocate polygon for union");
+       elog(ABORT, "Cannot allocate polygon for union");
 
    MemSet((char *) p, 0, sizeof(POLYGON));     /* zero any holes */
    p->size = sizeof(POLYGON);
@@ -136,7 +136,7 @@ rt_poly_inter(POLYGON *a, POLYGON *b)
    p = (POLYGON *) PALLOCTYPE(POLYGON);
 
    if (!PointerIsValid(p))
-       elog(WARN, "Cannot allocate polygon for intersection");
+       elog(ABORT, "Cannot allocate polygon for intersection");
 
    MemSet((char *) p, 0, sizeof(POLYGON));     /* zero any holes */
    p->size = sizeof(POLYGON);
index a51f3c36728e6932d9339867ec4bde726ec7151a..c85a6f7106d110f600b68da91a9fe39f9889f1ab 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.19 1997/11/20 23:20:26 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.20 1998/01/05 03:30:02 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -125,7 +125,7 @@ rtbuild(Relation heap,
     */
 
    if (oldPred == NULL && (nb = RelationGetNumberOfBlocks(index)) != 0)
-       elog(WARN, "%s already contains data", index->rd_rel->relname.data);
+       elog(ABORT, "%s already contains data", index->rd_rel->relname.data);
 
    /* initialize the root page (if this is a new index) */
    if (oldPred == NULL)
@@ -664,7 +664,7 @@ rtintinsert(Relation r,
     */
 
    if (IndexTupleSize(old) != IndexTupleSize(ltup))
-       elog(WARN, "Variable-length rtree keys are not supported.");
+       elog(ABORT, "Variable-length rtree keys are not supported.");
 
    /* install pointer to left child */
    memmove(old, ltup, IndexTupleSize(ltup));
index 73038a2ee8c84a100804820009cf948712741a55..e6fd7ae3e1d08c4b933e1f5c76cc9fd09ba9a429 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.13 1997/09/08 21:41:40 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.14 1998/01/05 03:30:05 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -85,7 +85,7 @@ rtrescan(IndexScanDesc s, bool fromEnd, ScanKey key)
 
    if (!IndexScanIsValid(s))
    {
-       elog(WARN, "rtrescan: invalid scan.");
+       elog(ABORT, "rtrescan: invalid scan.");
        return;
    }
 
@@ -284,7 +284,7 @@ rtdropscan(IndexScanDesc s)
    }
 
    if (l == (RTScanList) NULL)
-       elog(WARN, "rtree scan list corrupted -- cannot find 0x%lx", s);
+       elog(ABORT, "rtree scan list corrupted -- cannot find 0x%lx", s);
 
    if (prev == (RTScanList) NULL)
        RTScans = l->rtsl_next;
@@ -400,7 +400,7 @@ adjustiptr(IndexScanDesc s,
                    break;
 
                default:
-                   elog(WARN, "Bad operation in rtree scan adjust: %d", op);
+                   elog(ABORT, "Bad operation in rtree scan adjust: %d", op);
            }
        }
    }
index 02b7fa97693e17f22367cf478d94b071fdc7f7a7..8985e5ff0c64d0723628e7a3aac4c938302a5ee4 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.14 1997/11/02 15:24:42 vadim Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.15 1998/01/05 03:30:07 momjian Exp $
  *
  * NOTES
  *   This file contains the high level access-method interface to the
@@ -183,7 +183,7 @@ TransactionLogTest(TransactionId transactionId, /* transaction id to test */
     *    here the block didn't contain the information we wanted
     * ----------------
     */
-   elog(WARN, "TransactionLogTest: failed to get xidstatus");
+   elog(ABORT, "TransactionLogTest: failed to get xidstatus");
 
    /*
     * so lint is happy...
@@ -308,7 +308,7 @@ TransRecover(Relation logRelation)
     */
    TransGetLastRecordedTransaction(logRelation, logLastXid, &fail);
    if (fail == true)
-       elog(WARN, "TransRecover: failed TransGetLastRecordedTransaction");
+       elog(ABORT, "TransRecover: failed TransGetLastRecordedTransaction");
 
    /* ----------------
     *    next get the "last" and "next" variables
@@ -322,7 +322,7 @@ TransRecover(Relation logRelation)
     * ----------------
     */
    if (TransactionIdIsLessThan(varNextXid, logLastXid))
-       elog(WARN, "TransRecover: varNextXid < logLastXid");
+       elog(ABORT, "TransRecover: varNextXid < logLastXid");
 
    /* ----------------
     *    intregity test (2)
index a80b769982a7f08c2715b08771963e35c4185422..4de186da4fdb1b7b32157baa991d67eb33a63912 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/transsup.c,v 1.14 1997/11/02 15:24:44 vadim Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/transsup.c,v 1.15 1998/01/05 03:30:10 momjian Exp $
  *
  * NOTES
  *   This file contains support functions for the high
@@ -68,7 +68,7 @@ TransComputeBlockNumber(Relation relation,        /* relation to test */
    if (relation == LogRelation)
        itemsPerBlock = TP_NumXidStatusPerBlock;
    else
-       elog(WARN, "TransComputeBlockNumber: unknown relation");
+       elog(ABORT, "TransComputeBlockNumber: unknown relation");
 
    /* ----------------
     *  warning! if the transaction id's get too large
index e082350cb668eaddd8a604d4ee72f2dfc7523397..2474a6ac81a3a77de82aeced5d58e99e1694edfa 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/transam/varsup.c,v 1.13 1997/11/02 15:24:45 vadim Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/transam/varsup.c,v 1.14 1998/01/05 03:30:12 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -69,7 +69,7 @@ VariableRelationGetNextXid(TransactionId *xidP)
    if (!BufferIsValid(buf))
    {
        SpinRelease(OidGenLockId);
-       elog(WARN, "VariableRelationGetNextXid: ReadBuffer failed");
+       elog(ABORT, "VariableRelationGetNextXid: ReadBuffer failed");
    }
 
    var = (VariableRelationContents) BufferGetBlock(buf);
@@ -112,7 +112,7 @@ VariableRelationPutNextXid(TransactionId xid)
    if (!BufferIsValid(buf))
    {
        SpinRelease(OidGenLockId);
-       elog(WARN, "VariableRelationPutNextXid: ReadBuffer failed");
+       elog(ABORT, "VariableRelationPutNextXid: ReadBuffer failed");
    }
 
    var = (VariableRelationContents) BufferGetBlock(buf);
@@ -164,7 +164,7 @@ VariableRelationGetNextOid(Oid *oid_return)
    if (!BufferIsValid(buf))
    {
        SpinRelease(OidGenLockId);
-       elog(WARN, "VariableRelationGetNextXid: ReadBuffer failed");
+       elog(ABORT, "VariableRelationGetNextXid: ReadBuffer failed");
    }
 
    var = (VariableRelationContents) BufferGetBlock(buf);
@@ -224,7 +224,7 @@ VariableRelationPutNextOid(Oid *oidP)
    if (!PointerIsValid(oidP))
    {
        SpinRelease(OidGenLockId);
-       elog(WARN, "VariableRelationPutNextOid: invalid oid pointer");
+       elog(ABORT, "VariableRelationPutNextOid: invalid oid pointer");
    }
 
    /* ----------------
@@ -237,7 +237,7 @@ VariableRelationPutNextOid(Oid *oidP)
    if (!BufferIsValid(buf))
    {
        SpinRelease(OidGenLockId);
-       elog(WARN, "VariableRelationPutNextOid: ReadBuffer failed");
+       elog(ABORT, "VariableRelationPutNextOid: ReadBuffer failed");
    }
 
    var = (VariableRelationContents) BufferGetBlock(buf);
index ea5f1146d888209a5557fd45f1a1edd788cd4dd6..119dcd97f477cf6416d5a34092deb56358408a0b 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.17 1997/11/02 15:24:46 vadim Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.18 1998/01/05 03:30:13 momjian Exp $
  *
  * NOTES
  *     Transaction aborts can now occur two ways:
@@ -497,7 +497,7 @@ CommandCounterIncrement()
    if (CurrentTransactionStateData.commandId == FirstCommandId)
    {
        CommandIdCounterOverflowFlag = true;
-       elog(WARN, "You may only have 2^32-1 commands per transaction");
+       elog(ABORT, "You may only have 2^32-1 commands per transaction");
    }
 
    CurrentTransactionStateData.scanCommandId =
index 40a08e5220dea304ffaf6f27ec953d26d909c269..d9340f2544e7e7b60150b74d403f0c91acbd1fd8 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.10 1997/12/17 18:21:37 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.11 1998/01/05 03:30:16 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -203,10 +203,10 @@ InsertStmt:
          LPAREN  tuplelist RPAREN
                {
                    if (num_tuples_read != numattr)
-                       elog(WARN,"incorrect number of values for tuple");
+                       elog(ABORT,"incorrect number of values for tuple");
                    if (reldesc == (Relation)NULL)
                    {
-                       elog(WARN,"must OPEN RELATION before INSERT\n");
+                       elog(ABORT,"must OPEN RELATION before INSERT\n");
                        err_out();
                    }
                    if (DebugMode)
index e620b3fdbac56d9d03bf3f8e1ad3293229c8d5c2..b7592cfc660ce0c3b4c17c7c3ea215350bb13370 100644 (file)
@@ -7,7 +7,7 @@
  * Copyright (c) 1994, Regents of the University of California
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.30 1998/01/01 05:40:28 thomas Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.31 1998/01/05 03:30:18 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -572,18 +572,18 @@ closerel(char *name)
        if (reldesc)
        {
            if (namestrcmp(RelationGetRelationName(reldesc), name) != 0)
-               elog(WARN, "closerel: close of '%s' when '%s' was expected",
+               elog(ABORT, "closerel: close of '%s' when '%s' was expected",
                     name, relname ? relname : "(null)");
        }
        else
-           elog(WARN, "closerel: close of '%s' before any relation was opened",
+           elog(ABORT, "closerel: close of '%s' before any relation was opened",
                 name);
 
    }
 
    if (reldesc == NULL)
    {
-       elog(WARN, "Warning: no opened relation to close.\n");
+       elog(ABORT, "Warning: no opened relation to close.\n");
    }
    else
    {
@@ -879,7 +879,7 @@ gettype(char *type)
        heap_close(rdesc);
        return (gettype(type));
    }
-   elog(WARN, "Error: unknown type '%s'.\n", type);
+   elog(ABORT, "Error: unknown type '%s'.\n", type);
    err_out();
    /* not reached, here to make compiler happy */
    return 0;
index 09eac542eea951406b059b78cd8a3a9ea0db09df..5d123b7683d4a205187db515f1dc14ce0d70e0fb 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/catalog/catalog.c,v 1.10 1997/09/08 21:42:12 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/catalog/catalog.c,v 1.11 1998/01/05 03:30:22 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -132,7 +132,7 @@ newoid()
 
    GetNewObjectId(&lastoid);
    if (!OidIsValid(lastoid))
-       elog(WARN, "newoid: GetNewObjectId returns invalid oid");
+       elog(ABORT, "newoid: GetNewObjectId returns invalid oid");
    return lastoid;
 }
 
@@ -162,7 +162,7 @@ fillatt(TupleDesc tupleDesc)
    AttributeTupleForm *att = tupleDesc->attrs;
 
    if (natts < 0 || natts > MaxHeapAttributeNumber)
-       elog(WARN, "fillatt: %d attributes is too large", natts);
+       elog(ABORT, "fillatt: %d attributes is too large", natts);
    if (natts == 0)
    {
        elog(DEBUG, "fillatt: called with natts == 0");
@@ -178,7 +178,7 @@ fillatt(TupleDesc tupleDesc)
                                    0, 0, 0);
        if (!HeapTupleIsValid(tuple))
        {
-           elog(WARN, "fillatt: unknown atttypid %ld",
+           elog(ABORT, "fillatt: unknown atttypid %ld",
                 (*attributeP)->atttypid);
        }
        else
index 4384aa34a5be34c7ce4c478e25f2d220a25b598d..87205aa82bc9cf6d46d9409dcef04a2a6bafdf9e 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.41 1997/12/11 17:35:59 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.42 1998/01/05 03:30:27 momjian Exp $
  *
  * INTERFACE ROUTINES
  *     heap_create()           - Create an uncataloged heap relation
@@ -194,7 +194,7 @@ heap_create(char *name,
 
    if (IsSystemRelationName(relname) && IsNormalProcessingMode())
    {
-       elog(WARN,
+       elog(ABORT,
         "Illegal class name: %s -- pg_ is reserved for system catalogs",
             relname);
    }
@@ -396,7 +396,7 @@ heap_create(char *name,
  *
  *     this is used to make certain the tuple descriptor contains a
  *     valid set of attribute names.  a problem simply generates
- *     elog(WARN) which aborts the current transaction.
+ *     elog(ABORT) which aborts the current transaction.
  * --------------------------------
  */
 static void
@@ -421,7 +421,7 @@ CheckAttributeNames(TupleDesc tupdesc)
            if (nameeq(&(HeapAtt[j]->attname),
                       &(tupdesc->attrs[i]->attname)))
            {
-               elog(WARN,
+               elog(ABORT,
                     "create: system attribute named \"%s\"",
                     HeapAtt[j]->attname.data);
            }
@@ -445,7 +445,7 @@ CheckAttributeNames(TupleDesc tupdesc)
            if (nameeq(&(tupdesc->attrs[j]->attname),
                       &(tupdesc->attrs[i]->attname)))
            {
-               elog(WARN,
+               elog(ABORT,
                     "create: repeated attribute \"%s\"",
                     tupdesc->attrs[j]->attname.data);
            }
@@ -762,7 +762,7 @@ heap_create_with_catalog(char relname[],
     */
    AssertState(IsNormalProcessingMode() || IsBootstrapProcessingMode());
    if (natts == 0 || natts > MaxHeapAttributeNumber)
-       elog(WARN, "amcreate: from 1 to %d attributes must be specified",
+       elog(ABORT, "amcreate: from 1 to %d attributes must be specified",
             MaxHeapAttributeNumber);
 
    CheckAttributeNames(tupdesc);
@@ -777,7 +777,7 @@ heap_create_with_catalog(char relname[],
    if (RelationAlreadyExists(pg_class_desc, relname))
    {
        heap_close(pg_class_desc);
-       elog(WARN, "amcreate: %s relation already exists", relname);
+       elog(ABORT, "amcreate: %s relation already exists", relname);
    }
 
    /* ----------------
@@ -910,7 +910,7 @@ RelationRemoveInheritance(Relation relation)
        heap_endscan(scan);
        heap_close(catalogRelation);
 
-       elog(WARN, "relation <%d> inherits \"%s\"",
+       elog(ABORT, "relation <%d> inherits \"%s\"",
             ((InheritsTupleForm) GETSTRUCT(tuple))->inhrel,
             RelationGetRelationName(relation));
    }
@@ -1054,7 +1054,7 @@ DeletePgRelationTuple(Relation rdesc)
    {
        heap_endscan(pg_class_scan);
        heap_close(pg_class_desc);
-       elog(WARN, "DeletePgRelationTuple: %s relation nonexistent",
+       elog(ABORT, "DeletePgRelationTuple: %s relation nonexistent",
             &rdesc->rd_rel->relname);
    }
 
@@ -1187,7 +1187,7 @@ DeletePgTypeTuple(Relation rdesc)
    {
        heap_endscan(pg_type_scan);
        heap_close(pg_type_desc);
-       elog(WARN, "DeletePgTypeTuple: %s type nonexistent",
+       elog(ABORT, "DeletePgTypeTuple: %s type nonexistent",
             &rdesc->rd_rel->relname);
    }
 
@@ -1229,7 +1229,7 @@ DeletePgTypeTuple(Relation rdesc)
        heap_endscan(pg_attribute_scan);
        heap_close(pg_attribute_desc);
 
-       elog(WARN, "DeletePgTypeTuple: att of type %s exists in relation %d",
+       elog(ABORT, "DeletePgTypeTuple: att of type %s exists in relation %d",
             &rdesc->rd_rel->relname, relid);
    }
    heap_endscan(pg_attribute_scan);
@@ -1265,7 +1265,7 @@ heap_destroy_with_catalog(char *relname)
     */
    rdesc = heap_openr(relname);
    if (rdesc == NULL)
-       elog(WARN, "Relation %s Does Not Exist!", relname);
+       elog(ABORT, "Relation %s Does Not Exist!", relname);
 
    RelationSetLockForWrite(rdesc);
    rid = rdesc->rd_id;
@@ -1275,7 +1275,7 @@ heap_destroy_with_catalog(char *relname)
     * ----------------
     */
    if (IsSystemRelationName(RelationGetRelationName(rdesc)->data))
-       elog(WARN, "amdestroy: cannot destroy %s relation",
+       elog(ABORT, "amdestroy: cannot destroy %s relation",
             &rdesc->rd_rel->relname);
 
    /* ----------------
@@ -1516,7 +1516,7 @@ start:;
 
    if (length(query->rtable) > 1 ||
        flatten_tlist(query->targetList) != NIL)
-       elog(WARN, "DEFAULT: cannot use attribute(s)");
+       elog(ABORT, "DEFAULT: cannot use attribute(s)");
    te = (TargetEntry *) lfirst(query->targetList);
    resdom = te->resdom;
    expr = te->expr;
@@ -1526,13 +1526,13 @@ start:;
        if (((Const *) expr)->consttype != atp->atttypid)
        {
            if (*cast != 0)
-               elog(WARN, "DEFAULT: const type mismatched");
+               elog(ABORT, "DEFAULT: const type mismatched");
            sprintf(cast, ":: %s", typeidTypeName(atp->atttypid));
            goto start;
        }
    }
    else if (exprType(expr) != atp->atttypid)
-       elog(WARN, "DEFAULT: type mismatched");
+       elog(ABORT, "DEFAULT: type mismatched");
 
    adbin = nodeToString(expr);
    oldcxt = MemoryContextSwitchTo((MemoryContext) CacheCxt);
@@ -1585,7 +1585,7 @@ StoreRelCheck(Relation rel, ConstrCheck *check)
    query = (Query *) (queryTree_list->qtrees[0]);
 
    if (length(query->rtable) > 1)
-       elog(WARN, "CHECK: only relation %.*s can be referenced",
+       elog(ABORT, "CHECK: only relation %.*s can be referenced",
             NAMEDATALEN, rel->rd_rel->relname.data);
 
    plan = (Plan *) lfirst(planTree_list);
index 408908a140ac3f6fee2b6e968e3bf4d1f47c1252..adf28cec6268dfc15ca59bdf4573e4db9555d174 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.31 1997/11/28 04:39:38 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.32 1998/01/05 03:30:30 momjian Exp $
  *
  *
  * INTERFACE ROUTINES
@@ -237,7 +237,7 @@ GetHeapRelationOid(char *heapRelationName, char *indexRelationName)
                                     false);
 
    if (OidIsValid(indoid))
-       elog(WARN, "Cannot create index: '%s' already exists",
+       elog(ABORT, "Cannot create index: '%s' already exists",
             indexRelationName);
 
    /* ----------------
@@ -253,7 +253,7 @@ GetHeapRelationOid(char *heapRelationName, char *indexRelationName)
     * ----------------
     */
    if (!OidIsValid(heapoid))
-       elog(WARN, "Cannot create index on '%s': relation does not exist",
+       elog(ABORT, "Cannot create index on '%s': relation does not exist",
             heapRelationName);
 
    /* ----------------
@@ -306,7 +306,7 @@ BuildFuncTupleDesc(FuncIndexInfo *funcInfo)
                                ObjectIdGetDatum(retType),
                                0, 0, 0);
    if (!HeapTupleIsValid(tuple))
-       elog(WARN, "Function %s return type does not exist", FIgetname(funcInfo));
+       elog(ABORT, "Function %s return type does not exist", FIgetname(funcInfo));
 
    /*
     * Assign some of the attributes values. Leave the rest as 0.
@@ -374,7 +374,7 @@ ConstructTupleDescriptor(Oid heapoid,
         */
        atnum = attNums[i];
        if (atnum > natts)
-           elog(WARN, "Cannot create index: attribute %d does not exist",
+           elog(ABORT, "Cannot create index: attribute %d does not exist",
                 atnum);
        if (attributeList)
        {
@@ -404,7 +404,7 @@ ConstructTupleDescriptor(Oid heapoid,
             * ----------------
             */
            if (atnum <= FirstLowInvalidHeapAttributeNumber || atnum >= 0)
-               elog(WARN, "Cannot create index on system attribute: attribute number out of range (%d)", atnum);
+               elog(ABORT, "Cannot create index on system attribute: attribute number out of range (%d)", atnum);
            atind = (-atnum) - 1;
 
            from = (char *) (&sysatts[atind]);
@@ -450,7 +450,7 @@ ConstructTupleDescriptor(Oid heapoid,
                                      PointerGetDatum(IndexKeyType->name),
                                      0, 0, 0);
            if (!HeapTupleIsValid(tup))
-               elog(WARN, "create index: type '%s' undefined",
+               elog(ABORT, "create index: type '%s' undefined",
                     IndexKeyType->name);
            ((AttributeTupleForm) to)->atttypid = tup->t_oid;
            ((AttributeTupleForm) to)->attbyval =
@@ -1082,7 +1082,7 @@ index_create(char *heapRelationName,
     * ----------------
     */
    if (numatts < 1)
-       elog(WARN, "must index at least one attribute");
+       elog(ABORT, "must index at least one attribute");
 
    /* ----------------
     *    get heap relation oid and open the heap relation
@@ -1297,7 +1297,7 @@ index_destroy(Oid indexId)
     * physically remove the file
     */
    if (FileNameUnlink(relpath(indexRelation->rd_rel->relname.data)) < 0)
-       elog(WARN, "amdestroyr: unlink: %m");
+       elog(ABORT, "amdestroyr: unlink: %m");
 
    index_close(indexRelation);
 }
@@ -1398,7 +1398,7 @@ UpdateStats(Oid relid, long reltuples, bool hasindex)
    whichRel = RelationIdGetRelation(relid);
 
    if (!RelationIsValid(whichRel))
-       elog(WARN, "UpdateStats: cannot open relation id %d", relid);
+       elog(ABORT, "UpdateStats: cannot open relation id %d", relid);
 
    /* ----------------
     * Find the RELATION relation tuple for the given relation.
@@ -1407,7 +1407,7 @@ UpdateStats(Oid relid, long reltuples, bool hasindex)
    pg_class = heap_openr(RelationRelationName);
    if (!RelationIsValid(pg_class))
    {
-       elog(WARN, "UpdateStats: could not open RELATION relation");
+       elog(ABORT, "UpdateStats: could not open RELATION relation");
    }
    key[0].sk_argument = ObjectIdGetDatum(relid);
 
@@ -1417,7 +1417,7 @@ UpdateStats(Oid relid, long reltuples, bool hasindex)
    if (!HeapScanIsValid(pg_class_scan))
    {
        heap_close(pg_class);
-       elog(WARN, "UpdateStats: cannot scan RELATION relation");
+       elog(ABORT, "UpdateStats: cannot scan RELATION relation");
    }
 
    /* if the heap_open above succeeded, then so will this heap_getnext() */
@@ -1784,7 +1784,7 @@ IndexIsUnique(Oid indexId)
                                0, 0, 0);
    if (!HeapTupleIsValid(tuple))
    {
-       elog(WARN, "IndexIsUnique: can't find index id %d",
+       elog(ABORT, "IndexIsUnique: can't find index id %d",
             indexId);
    }
    index = (IndexTupleForm) GETSTRUCT(tuple);
@@ -1827,7 +1827,7 @@ IndexIsUniqueNoCache(Oid indexId)
    tuple = heap_getnext(scandesc, 0, NULL);
    if (!HeapTupleIsValid(tuple))
    {
-       elog(WARN, "IndexIsUniqueNoCache: can't find index id %d",
+       elog(ABORT, "IndexIsUniqueNoCache: can't find index id %d",
             indexId);
    }
    index = (IndexTupleForm) GETSTRUCT(tuple);
index 4c3b11c54c6b0fbc83fce7e1b1414afb9b20c2fd..94ed8241bfcb8ca9898a61e519a01e07db673865 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/catalog/pg_aggregate.c,v 1.9 1997/09/18 20:20:15 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/catalog/pg_aggregate.c,v 1.10 1998/01/05 03:30:32 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -84,16 +84,16 @@ AggregateCreate(char *aggName,
 
    /* sanity checks */
    if (!aggName)
-       elog(WARN, "AggregateCreate: no aggregate name supplied");
+       elog(ABORT, "AggregateCreate: no aggregate name supplied");
 
    if (!aggtransfn1Name && !aggtransfn2Name)
-       elog(WARN, "AggregateCreate: aggregate must have at least one transition function");
+       elog(ABORT, "AggregateCreate: aggregate must have at least one transition function");
 
    tup = SearchSysCacheTuple(TYPNAME,
                              PointerGetDatum(aggbasetypeName),
                              0, 0, 0);
    if (!HeapTupleIsValid(tup))
-       elog(WARN, "AggregateCreate: Type '%s' undefined", aggbasetypeName);
+       elog(ABORT, "AggregateCreate: Type '%s' undefined", aggbasetypeName);
    xbase = tup->t_oid;
 
    if (aggtransfn1Name)
@@ -102,7 +102,7 @@ AggregateCreate(char *aggName,
                                  PointerGetDatum(aggtransfn1typeName),
                                  0, 0, 0);
        if (!HeapTupleIsValid(tup))
-           elog(WARN, "AggregateCreate: Type '%s' undefined",
+           elog(ABORT, "AggregateCreate: Type '%s' undefined",
                 aggtransfn1typeName);
        xret1 = tup->t_oid;
 
@@ -114,16 +114,16 @@ AggregateCreate(char *aggName,
                                  PointerGetDatum(fnArgs),
                                  0);
        if (!HeapTupleIsValid(tup))
-           elog(WARN, "AggregateCreate: '%s('%s', '%s') does not exist",
+           elog(ABORT, "AggregateCreate: '%s('%s', '%s') does not exist",
                 aggtransfn1Name, aggtransfn1typeName, aggbasetypeName);
        if (((Form_pg_proc) GETSTRUCT(tup))->prorettype != xret1)
-           elog(WARN, "AggregateCreate: return type of '%s' is not '%s'",
+           elog(ABORT, "AggregateCreate: return type of '%s' is not '%s'",
                 aggtransfn1Name,
                 aggtransfn1typeName);
        xfn1 = tup->t_oid;
        if (!OidIsValid(xfn1) || !OidIsValid(xret1) ||
            !OidIsValid(xbase))
-           elog(WARN, "AggregateCreate: bogus function '%s'", aggfinalfnName);
+           elog(ABORT, "AggregateCreate: bogus function '%s'", aggfinalfnName);
    }
 
    if (aggtransfn2Name)
@@ -132,7 +132,7 @@ AggregateCreate(char *aggName,
                                  PointerGetDatum(aggtransfn2typeName),
                                  0, 0, 0);
        if (!HeapTupleIsValid(tup))
-           elog(WARN, "AggregateCreate: Type '%s' undefined",
+           elog(ABORT, "AggregateCreate: Type '%s' undefined",
                 aggtransfn2typeName);
        xret2 = tup->t_oid;
 
@@ -144,30 +144,30 @@ AggregateCreate(char *aggName,
                                  PointerGetDatum(fnArgs),
                                  0);
        if (!HeapTupleIsValid(tup))
-           elog(WARN, "AggregateCreate: '%s'('%s') does not exist",
+           elog(ABORT, "AggregateCreate: '%s'('%s') does not exist",
                 aggtransfn2Name, aggtransfn2typeName);
        if (((Form_pg_proc) GETSTRUCT(tup))->prorettype != xret2)
-           elog(WARN, "AggregateCreate: return type of '%s' is not '%s'",
+           elog(ABORT, "AggregateCreate: return type of '%s' is not '%s'",
                 aggtransfn2Name, aggtransfn2typeName);
        xfn2 = tup->t_oid;
        if (!OidIsValid(xfn2) || !OidIsValid(xret2))
-           elog(WARN, "AggregateCreate: bogus function '%s'", aggfinalfnName);
+           elog(ABORT, "AggregateCreate: bogus function '%s'", aggfinalfnName);
    }
 
    tup = SearchSysCacheTuple(AGGNAME, PointerGetDatum(aggName),
                              ObjectIdGetDatum(xbase),
                              0, 0);
    if (HeapTupleIsValid(tup))
-       elog(WARN,
+       elog(ABORT,
             "AggregateCreate: aggregate '%s' with base type '%s' already exists",
             aggName, aggbasetypeName);
 
    /* more sanity checks */
    if (aggtransfn1Name && aggtransfn2Name && !aggfinalfnName)
-       elog(WARN, "AggregateCreate: Aggregate must have final function with both transition functions");
+       elog(ABORT, "AggregateCreate: Aggregate must have final function with both transition functions");
 
    if ((!aggtransfn1Name || !aggtransfn2Name) && aggfinalfnName)
-       elog(WARN, "AggregateCreate: Aggregate cannot have final function without both transition functions");
+       elog(ABORT, "AggregateCreate: Aggregate cannot have final function without both transition functions");
 
    if (aggfinalfnName)
    {
@@ -179,13 +179,13 @@ AggregateCreate(char *aggName,
                                  PointerGetDatum(fnArgs),
                                  0);
        if (!HeapTupleIsValid(tup))
-           elog(WARN, "AggregateCreate: '%s'('%s','%s') does not exist",
+           elog(ABORT, "AggregateCreate: '%s'('%s','%s') does not exist",
               aggfinalfnName, aggtransfn1typeName, aggtransfn2typeName);
        ffn = tup->t_oid;
        proc = (Form_pg_proc) GETSTRUCT(tup);
        fret = proc->prorettype;
        if (!OidIsValid(ffn) || !OidIsValid(fret))
-           elog(WARN, "AggregateCreate: bogus function '%s'", aggfinalfnName);
+           elog(ABORT, "AggregateCreate: bogus function '%s'", aggfinalfnName);
    }
 
    /*
@@ -194,7 +194,7 @@ AggregateCreate(char *aggName,
     * aggregates to return NULL if they are evaluated on empty sets.
     */
    if (OidIsValid(xfn2) && !agginitval2)
-       elog(WARN, "AggregateCreate: transition function 2 MUST have an initial value");
+       elog(ABORT, "AggregateCreate: transition function 2 MUST have an initial value");
 
    /* initialize nulls and values */
    for (i = 0; i < Natts_pg_aggregate; i++)
@@ -253,16 +253,16 @@ AggregateCreate(char *aggName,
        nulls[Anum_pg_aggregate_agginitval2 - 1] = 'n';
 
    if (!RelationIsValid(aggdesc = heap_openr(AggregateRelationName)))
-       elog(WARN, "AggregateCreate: could not open '%s'",
+       elog(ABORT, "AggregateCreate: could not open '%s'",
             AggregateRelationName);
 
    tupDesc = aggdesc->rd_att;
    if (!HeapTupleIsValid(tup = heap_formtuple(tupDesc,
                                               values,
                                               nulls)))
-       elog(WARN, "AggregateCreate: heap_formtuple failed");
+       elog(ABORT, "AggregateCreate: heap_formtuple failed");
    if (!OidIsValid(heap_insert(aggdesc, tup)))
-       elog(WARN, "AggregateCreate: heap_insert failed");
+       elog(ABORT, "AggregateCreate: heap_insert failed");
    heap_close(aggdesc);
 
 }
@@ -287,7 +287,7 @@ AggNameGetInitVal(char *aggName, Oid basetype, int xfuncno, bool *isNull)
                              PointerGetDatum(basetype),
                              0, 0);
    if (!HeapTupleIsValid(tup))
-       elog(WARN, "AggNameGetInitVal: cache lookup failed for aggregate '%s'",
+       elog(ABORT, "AggNameGetInitVal: cache lookup failed for aggregate '%s'",
             aggName);
    if (xfuncno == 1)
    {
@@ -303,7 +303,7 @@ AggNameGetInitVal(char *aggName, Oid basetype, int xfuncno, bool *isNull)
 
    aggRel = heap_openr(AggregateRelationName);
    if (!RelationIsValid(aggRel))
-       elog(WARN, "AggNameGetInitVal: could not open \"%-.*s\"",
+       elog(ABORT, "AggNameGetInitVal: could not open \"%-.*s\"",
             AggregateRelationName);
 
    /*
@@ -328,7 +328,7 @@ AggNameGetInitVal(char *aggName, Oid basetype, int xfuncno, bool *isNull)
    if (!HeapTupleIsValid(tup))
    {
        pfree(strInitVal);
-       elog(WARN, "AggNameGetInitVal: cache lookup failed on aggregate transition function return type");
+       elog(ABORT, "AggNameGetInitVal: cache lookup failed on aggregate transition function return type");
    }
    initVal = fmgr(((TypeTupleForm) GETSTRUCT(tup))->typinput, strInitVal, -1);
    pfree(strInitVal);
index bbdd23701ade6e0d21b32c46e6a6f6dd0843c2f5..10ffe7310568602fc68eb23fd5ce70f85fa17334 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.17 1997/11/25 21:58:46 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.18 1998/01/05 03:30:32 momjian Exp $
  *
  * NOTES
  *   these routines moved here from commands/define.c and somewhat cleaned up.
@@ -171,7 +171,7 @@ OperatorGet(char *operatorName,
        leftObjectId = TypeGet(leftTypeName, &leftDefined);
 
        if (!OidIsValid(leftObjectId) || !leftDefined)
-           elog(WARN, "OperatorGet: left type '%s' nonexistent", leftTypeName);
+           elog(ABORT, "OperatorGet: left type '%s' nonexistent", leftTypeName);
    }
 
    if (rightTypeName)
@@ -179,13 +179,13 @@ OperatorGet(char *operatorName,
        rightObjectId = TypeGet(rightTypeName, &rightDefined);
 
        if (!OidIsValid(rightObjectId) || !rightDefined)
-           elog(WARN, "OperatorGet: right type '%s' nonexistent",
+           elog(ABORT, "OperatorGet: right type '%s' nonexistent",
                 rightTypeName);
    }
 
    if (!((OidIsValid(leftObjectId) && leftDefined) ||
          (OidIsValid(rightObjectId) && rightDefined)))
-       elog(WARN, "OperatorGet: no argument types??");
+       elog(ABORT, "OperatorGet: no argument types??");
 
    /* ----------------
     *  open the pg_operator relation
@@ -327,7 +327,7 @@ OperatorShellMake(char *operatorName,
 
    if (!((OidIsValid(leftObjectId) && leftDefined) ||
          (OidIsValid(rightObjectId) && rightDefined)))
-       elog(WARN, "OperatorShellMake: no valid argument types??");
+       elog(ABORT, "OperatorShellMake: no valid argument types??");
 
    /* ----------------
     *  open pg_operator
@@ -494,7 +494,7 @@ OperatorDef(char *operatorName,
                                   rightTypeName);
 
    if (OidIsValid(operatorObjectId) && !definedOK)
-       elog(WARN, "OperatorDef: operator \"%s\" already defined",
+       elog(ABORT, "OperatorDef: operator \"%s\" already defined",
             operatorName);
 
    if (leftTypeName)
@@ -505,7 +505,7 @@ OperatorDef(char *operatorName,
 
    if (!((OidIsValid(leftTypeId && leftDefined)) ||
          (OidIsValid(rightTypeId && rightDefined))))
-       elog(WARN, "OperatorGet: no argument types??");
+       elog(ABORT, "OperatorGet: no argument types??");
 
    for (i = 0; i < Natts_pg_operator; ++i)
    {
@@ -668,7 +668,7 @@ OperatorDef(char *operatorName,
                }
 
                if (!OidIsValid(other_oid))
-                   elog(WARN,
+                   elog(ABORT,
                         "OperatorDef: can't create operator '%s'",
                         name[j]);
                values[i++] = ObjectIdGetDatum(other_oid);
@@ -719,7 +719,7 @@ OperatorDef(char *operatorName,
            setheapoverride(false);
        }
        else
-           elog(WARN, "OperatorDef: no operator %d", other_oid);
+           elog(ABORT, "OperatorDef: no operator %d", other_oid);
 
        heap_endscan(pg_operator_scan);
 
@@ -994,7 +994,7 @@ OperatorCreate(char *operatorName,
    int         definedOK;
 
    if (!leftTypeName && !rightTypeName)
-       elog(WARN, "OperatorCreate : at least one of leftarg or rightarg must be defined");
+       elog(ABORT, "OperatorCreate : at least one of leftarg or rightarg must be defined");
 
    /* ----------------
     *  get the oid's of the operator's associated operators, if possible.
index 464c8f68c6f6851b5f940fab9ef6a190ea8931c5..c8609f6a36b97038d522a2fdc032c73ce17ec546 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.11 1997/12/11 17:36:01 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.12 1998/01/05 03:30:33 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -87,13 +87,13 @@ ProcedureCreate(char *procedureName,
        Value      *t = lfirst(x);
 
        if (parameterCount == 8)
-           elog(WARN, "Procedures cannot take more than 8 arguments");
+           elog(ABORT, "Procedures cannot take more than 8 arguments");
 
        if (strcmp(strVal(t), "opaque") == 0)
        {
            if (strcmp(languageName, "sql") == 0)
            {
-               elog(WARN, "ProcedureDefine: sql functions cannot take type \"opaque\"");
+               elog(ABORT, "ProcedureDefine: sql functions cannot take type \"opaque\"");
            }
            toid = 0;
        }
@@ -103,7 +103,7 @@ ProcedureCreate(char *procedureName,
 
            if (!OidIsValid(toid))
            {
-               elog(WARN, "ProcedureCreate: arg type '%s' is not defined",
+               elog(ABORT, "ProcedureCreate: arg type '%s' is not defined",
                     strVal(t));
            }
 
@@ -124,7 +124,7 @@ ProcedureCreate(char *procedureName,
                              0);
 
    if (HeapTupleIsValid(tup))
-       elog(WARN, "ProcedureCreate: procedure %s already exists with same arguments",
+       elog(ABORT, "ProcedureCreate: procedure %s already exists with same arguments",
             procedureName);
 
    if (!strcmp(languageName, "sql"))
@@ -152,7 +152,7 @@ ProcedureCreate(char *procedureName,
                              0, 0, 0);
 
    if (!HeapTupleIsValid(tup))
-       elog(WARN, "ProcedureCreate: no such language %s",
+       elog(ABORT, "ProcedureCreate: no such language %s",
             languageName);
 
    languageObjectId = tup->t_oid;
@@ -161,7 +161,7 @@ ProcedureCreate(char *procedureName,
    {
        if (strcmp(languageName, "sql") == 0)
        {
-           elog(WARN, "ProcedureCreate: sql functions cannot return type \"opaque\"");
+           elog(ABORT, "ProcedureCreate: sql functions cannot return type \"opaque\"");
        }
        typeObjectId = 0;
    }
@@ -181,7 +181,7 @@ ProcedureCreate(char *procedureName,
            typeObjectId = TypeShellMake(returnTypeName);
            if (!OidIsValid(typeObjectId))
            {
-               elog(WARN, "ProcedureCreate: could not create type '%s'",
+               elog(ABORT, "ProcedureCreate: could not create type '%s'",
                     returnTypeName);
            }
        }
@@ -202,7 +202,7 @@ ProcedureCreate(char *procedureName,
        defined &&
        (relid = typeidTypeRelid(toid)) != 0 &&
        get_attnum(relid, procedureName) != InvalidAttrNumber)
-       elog(WARN, "method %s already an attribute of type %s",
+       elog(ABORT, "method %s already an attribute of type %s",
             procedureName, strVal(lfirst(argList)));
 
 
index 23854e275fa86613810f7d5c2e55d4d1f45fa207..5834c1fbf393d5b5781252a46caa17f55cb64700 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.15 1997/11/26 04:50:21 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.16 1998/01/05 03:30:35 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -334,7 +334,7 @@ TypeCreate(char *typeName,
    typeObjectId = TypeGet(typeName, &defined);
    if (OidIsValid(typeObjectId) && defined)
    {
-       elog(WARN, "TypeCreate: type %s already defined", typeName);
+       elog(ABORT, "TypeCreate: type %s already defined", typeName);
    }
 
    /* ----------------
@@ -347,7 +347,7 @@ TypeCreate(char *typeName,
        elementObjectId = TypeGet(elementTypeName, &defined);
        if (!defined)
        {
-           elog(WARN, "TypeCreate: type %s is not defined", elementTypeName);
+           elog(ABORT, "TypeCreate: type %s is not defined", elementTypeName);
        }
    }
 
@@ -558,7 +558,7 @@ TypeRename(char *oldTypeName, char *newTypeName)
    type_oid = TypeGet(newTypeName, &defined);
    if (OidIsValid(type_oid) && defined)
    {
-       elog(WARN, "TypeRename: type %s already defined", newTypeName);
+       elog(ABORT, "TypeRename: type %s already defined", newTypeName);
    }
 
    /* get the type tuple from the catalog index scan manager */
@@ -591,7 +591,7 @@ TypeRename(char *oldTypeName, char *newTypeName)
    }
    else
    {
-       elog(WARN, "TypeRename: type %s not defined", oldTypeName);
+       elog(ABORT, "TypeRename: type %s not defined", oldTypeName);
    }
 
    /* finish up */
index a9e88692b1e0058c2d9c8a5ccdb7ccd7fc81d0bc..18e31131e02959f20ed82fc4b54870f2db5dea98 100644 (file)
@@ -10,7 +10,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/version.c,v 1.9 1997/12/11 17:36:08 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/version.c,v 1.10 1998/01/05 03:30:58 momjian Exp $
  *
  * NOTES
  *   At the point the version is defined, 2 physical relations are created
@@ -195,7 +195,7 @@ setAttrList(char *bname)
    rdesc = heap_openr(bname);
    if (rdesc == NULL)
    {
-       elog(WARN, "Unable to expand all -- amopenr failed ");
+       elog(ABORT, "Unable to expand all -- amopenr failed ");
        return;
    }
    maxattrs = RelationGetNumberOfAttributes(rdesc);
index 560eb0ca71d6ffecfda2c989e83c87f4b3aa3ca5..fe26fa463fe6b6ae23f61818075ddb99c6f3ed3f 100644 (file)
@@ -14,7 +14,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.19 1997/11/28 17:26:55 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.20 1998/01/05 03:30:38 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -125,7 +125,7 @@ cluster(char oldrelname[], char oldindexname[])
    OldHeap = heap_openr(oldrelname);
    if (!RelationIsValid(OldHeap))
    {
-       elog(WARN, "cluster: unknown relation: \"%s\"",
+       elog(ABORT, "cluster: unknown relation: \"%s\"",
             oldrelname);
    }
    OIDOldHeap = OldHeap->rd_id;/* Get OID for the index scan   */
@@ -133,7 +133,7 @@ cluster(char oldrelname[], char oldindexname[])
    OldIndex = index_openr(oldindexname);       /* Open old index relation  */
    if (!RelationIsValid(OldIndex))
    {
-       elog(WARN, "cluster: unknown index: \"%s\"",
+       elog(ABORT, "cluster: unknown index: \"%s\"",
             oldindexname);
    }
    OIDOldIndex = OldIndex->rd_id;      /* OID for the index scan         */
@@ -218,7 +218,7 @@ copy_heap(Oid OIDOldHeap)
    OIDNewHeap = heap_create_with_catalog(NewName, tupdesc);
 
    if (!OidIsValid(OIDNewHeap))
-       elog(WARN, "clusterheap: cannot create temporary heap relation\n");
+       elog(ABORT, "clusterheap: cannot create temporary heap relation\n");
 
    NewHeap = heap_open(OIDNewHeap);
 
index d33edbb7f9b8094ec2e4915e295cc04da9f0f17f..98d3d614cb7e7a84200a9c11333f9df6535d0bc2 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.21 1997/11/20 23:21:00 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.22 1998/01/05 03:30:39 momjian Exp $
  *
  * NOTES
  *   The PortalExecutorHeapMemory crap needs to be eliminated
@@ -294,11 +294,11 @@ PerformAddAttribute(char *relationName,
     * normally, only the owner of a class can change its schema.
     */
    if (IsSystemRelationName(relationName))
-       elog(WARN, "PerformAddAttribute: class \"%s\" is a system catalog",
+       elog(ABORT, "PerformAddAttribute: class \"%s\" is a system catalog",
             relationName);
 #ifndef NO_SECURITY
    if (!pg_ownercheck(userName, relationName, RELNAME))
-       elog(WARN, "PerformAddAttribute: you do not own class \"%s\"",
+       elog(ABORT, "PerformAddAttribute: you do not own class \"%s\"",
             relationName);
 #endif
 
@@ -306,9 +306,9 @@ PerformAddAttribute(char *relationName,
     * we can't add a not null attribute
     */
    if (colDef->is_not_null)
-       elog(WARN, "Can't add a NOT NULL attribute to an existing relation");
+       elog(ABORT, "Can't add a NOT NULL attribute to an existing relation");
    if (colDef->defval)
-       elog(WARN, "ADD ATTRIBUTE: DEFAULT not yet implemented");
+       elog(ABORT, "ADD ATTRIBUTE: DEFAULT not yet implemented");
 
    /*
     * if the first element in the 'schema' list is a "*" then we are
@@ -331,7 +331,7 @@ PerformAddAttribute(char *relationName,
            relrdesc = heap_openr(relationName);
            if (!RelationIsValid(relrdesc))
            {
-               elog(WARN, "PerformAddAttribute: unknown relation: \"%s\"",
+               elog(ABORT, "PerformAddAttribute: unknown relation: \"%s\"",
                     relationName);
            }
            myrelid = relrdesc->rd_id;
@@ -353,7 +353,7 @@ PerformAddAttribute(char *relationName,
                relrdesc = heap_open(childrelid);
                if (!RelationIsValid(relrdesc))
                {
-                   elog(WARN, "PerformAddAttribute: can't find catalog entry for inheriting class with oid %d",
+                   elog(ABORT, "PerformAddAttribute: can't find catalog entry for inheriting class with oid %d",
                         childrelid);
                }
                PerformAddAttribute((relrdesc->rd_rel->relname).data,
@@ -369,7 +369,7 @@ PerformAddAttribute(char *relationName,
    if (!PointerIsValid(reltup))
    {
        heap_close(relrdesc);
-       elog(WARN, "PerformAddAttribute: relation \"%s\" not found",
+       elog(ABORT, "PerformAddAttribute: relation \"%s\" not found",
             relationName);
    }
 
@@ -378,7 +378,7 @@ PerformAddAttribute(char *relationName,
     */
    if (((Form_pg_class) GETSTRUCT(reltup))->relkind == RELKIND_INDEX)
    {
-       elog(WARN, "PerformAddAttribute: index relation \"%s\" not changed",
+       elog(ABORT, "PerformAddAttribute: index relation \"%s\" not changed",
             relationName);
        return;
    }
@@ -389,7 +389,7 @@ PerformAddAttribute(char *relationName,
    {
        pfree(reltup);          /* XXX temp */
        heap_close(relrdesc);   /* XXX temp */
-       elog(WARN, "PerformAddAttribute: relations limited to %d attributes",
+       elog(ABORT, "PerformAddAttribute: relations limited to %d attributes",
             MaxHeapAttributeNumber);
        return;
    }
@@ -450,7 +450,7 @@ PerformAddAttribute(char *relationName,
            heap_endscan(attsdesc);     /* XXX temp */
            heap_close(attrdesc);       /* XXX temp */
            heap_close(relrdesc);       /* XXX temp */
-           elog(WARN, "PerformAddAttribute: attribute \"%s\" already exists in class \"%s\"",
+           elog(ABORT, "PerformAddAttribute: attribute \"%s\" already exists in class \"%s\"",
                 key[1].sk_argument,
                 relationName);
            return;
@@ -478,7 +478,7 @@ PerformAddAttribute(char *relationName,
 
        if (!HeapTupleIsValid(typeTuple))
        {
-           elog(WARN, "Add: type \"%s\" nonexistent", p);
+           elog(ABORT, "Add: type \"%s\" nonexistent", p);
        }
        namestrcpy(&(attribute->attname), (char *) key[1].sk_argument);
        attribute->atttypid = typeTuple->t_oid;
index fdc998b9418e9c6ab06e6ca459482a7be8059e1b..4183ac6831877d645bf12fc2386554077852b403 100644 (file)
@@ -6,7 +6,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.35 1997/11/20 23:21:03 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.36 1998/01/05 03:30:41 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -115,15 +115,15 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
 
    rel = heap_openr(relname);
    if (rel == NULL)
-       elog(WARN, "COPY command failed.  Class %s "
+       elog(ABORT, "COPY command failed.  Class %s "
             "does not exist.", relname);
 
    result = pg_aclcheck(relname, UserName, required_access);
    if (result != ACLCHECK_OK)
-       elog(WARN, "%s: %s", relname, aclcheck_error_strings[result]);
+       elog(ABORT, "%s: %s", relname, aclcheck_error_strings[result]);
    /* Above should not return */
    else if (!superuser() && !pipe)
-       elog(WARN, "You must have Postgres superuser privilege to do a COPY "
+       elog(ABORT, "You must have Postgres superuser privilege to do a COPY "
             "directly to or from a file.  Anyone can COPY to stdout or "
             "from stdin.  Psql's \\copy command also works for anyone.");
    /* Above should not return. */
@@ -132,7 +132,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
        if (from)
        {                       /* copy from file to database */
            if (rel->rd_rel->relkind == RELKIND_SEQUENCE)
-               elog(WARN, "You can't change sequence relation %s", relname);
+               elog(ABORT, "You can't change sequence relation %s", relname);
            if (pipe)
            {
                if (IsUnderPostmaster)
@@ -147,7 +147,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
            {
                fp = AllocateFile(filename, "r");
                if (fp == NULL)
-                   elog(WARN, "COPY command, running in backend with "
+                   elog(ABORT, "COPY command, running in backend with "
                         "effective uid %d, could not open file '%s' for "
                         "reading.  Errno = %s (%d).",
                         geteuid(), filename, strerror(errno), errno);
@@ -175,7 +175,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
                fp = AllocateFile(filename, "w");
                umask(oumask);
                if (fp == NULL)
-                   elog(WARN, "COPY command, running in backend with "
+                   elog(ABORT, "COPY command, running in backend with "
                         "effective uid %d, could not open file '%s' for "
                         "writing.  Errno = %s (%d).",
                         geteuid(), filename, strerror(errno), errno);
@@ -560,7 +560,7 @@ CopyFrom(Relation rel, bool binary, bool oids, FILE *fp, char *delim)
                {
                    loaded_oid = oidin(string);
                    if (loaded_oid < BootstrapObjectIdData)
-                       elog(WARN, "COPY TEXT: Invalid Oid");
+                       elog(ABORT, "COPY TEXT: Invalid Oid");
                }
            }
            for (i = 0; i < attr_count && !done; i++)
@@ -594,10 +594,10 @@ CopyFrom(Relation rel, bool binary, bool oids, FILE *fp, char *delim)
                        !(rel->rd_att->attrs[i]->attbyval))
                    {
 #ifdef COPY_DEBUG
-                       elog(WARN,
+                       elog(ABORT,
                         "copy from: line %d - Bad file format", lineno);
 #else
-                       elog(WARN, "copy from: Bad file format");
+                       elog(ABORT, "copy from: Bad file format");
 #endif
                    }
                }
@@ -622,7 +622,7 @@ CopyFrom(Relation rel, bool binary, bool oids, FILE *fp, char *delim)
                {
                    fread(&loaded_oid, sizeof(int32), 1, fp);
                    if (loaded_oid < BootstrapObjectIdData)
-                       elog(WARN, "COPY BINARY: Invalid Oid");
+                       elog(ABORT, "COPY BINARY: Invalid Oid");
                }
                fread(&null_ct, sizeof(int32), 1, fp);
                if (null_ct > 0)
@@ -661,7 +661,7 @@ CopyFrom(Relation rel, bool binary, bool oids, FILE *fp, char *delim)
                                ptr += sizeof(int32);
                                break;
                            default:
-                               elog(WARN, "COPY BINARY: impossible size!");
+                               elog(ABORT, "COPY BINARY: impossible size!");
                                break;
                        }
                    }
@@ -837,7 +837,7 @@ GetOutputFunction(Oid type)
    if (HeapTupleIsValid(typeTuple))
        return ((int) ((TypeTupleForm) GETSTRUCT(typeTuple))->typoutput);
 
-   elog(WARN, "GetOutputFunction: Cache lookup of type %d failed", type);
+   elog(ABORT, "GetOutputFunction: Cache lookup of type %d failed", type);
    return (InvalidOid);
 }
 
@@ -854,7 +854,7 @@ GetTypeElement(Oid type)
    if (HeapTupleIsValid(typeTuple))
        return ((int) ((TypeTupleForm) GETSTRUCT(typeTuple))->typelem);
 
-   elog(WARN, "GetOutputFunction: Cache lookup of type %d failed", type);
+   elog(ABORT, "GetOutputFunction: Cache lookup of type %d failed", type);
    return (InvalidOid);
 }
 
@@ -870,7 +870,7 @@ GetInputFunction(Oid type)
    if (HeapTupleIsValid(typeTuple))
        return ((int) ((TypeTupleForm) GETSTRUCT(typeTuple))->typinput);
 
-   elog(WARN, "GetInputFunction: Cache lookup of type %d failed", type);
+   elog(ABORT, "GetInputFunction: Cache lookup of type %d failed", type);
    return (InvalidOid);
 }
 
@@ -886,7 +886,7 @@ IsTypeByVal(Oid type)
    if (HeapTupleIsValid(typeTuple))
        return ((int) ((TypeTupleForm) GETSTRUCT(typeTuple))->typbyval);
 
-   elog(WARN, "GetInputFunction: Cache lookup of type %d failed", type);
+   elog(ABORT, "GetInputFunction: Cache lookup of type %d failed", type);
 
    return (InvalidOid);
 }
@@ -1125,7 +1125,7 @@ CopyReadAttribute(FILE *fp, bool *isnull, char *delim)
                case '.':
                    c = getc(fp);
                    if (c != '\n')
-                       elog(WARN, "CopyReadAttribute - end of record marker corrupted");
+                       elog(ABORT, "CopyReadAttribute - end of record marker corrupted");
                    return (NULL);
                    break;
            }
@@ -1143,7 +1143,7 @@ CopyReadAttribute(FILE *fp, bool *isnull, char *delim)
        if (!done)
            attribute[i++] = c;
        if (i == EXT_ATTLEN - 1)
-           elog(WARN, "CopyReadAttribute - attribute length too long");
+           elog(ABORT, "CopyReadAttribute - attribute length too long");
    }
    attribute[i] = '\0';
    return (&attribute[0]);
index 5fff19ea5041840bf34b16508b250e5e2da365f9..30ec08a3911480dc6f12a25fa8256f74b129ca92 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.22 1997/12/04 23:15:28 thomas Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.23 1998/01/05 03:30:44 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -56,7 +56,7 @@ DefineRelation(CreateStmt *stmt)
    List       *constraints;
 
    if (strlen(stmt->relname) >= NAMEDATALEN)
-       elog(WARN, "the relation name %s is >= %d characters long", stmt->relname,
+       elog(ABORT, "the relation name %s is >= %d characters long", stmt->relname,
             NAMEDATALEN);
    StrNCpy(relname, stmt->relname, NAMEDATALEN);   /* make full length for
                                                         * copy */
@@ -78,7 +78,7 @@ DefineRelation(CreateStmt *stmt)
    numberOfAttributes = length(schema);
    if (numberOfAttributes <= 0)
    {
-       elog(WARN, "DefineRelation: %s",
+       elog(ABORT, "DefineRelation: %s",
             "please inherit from a relation or define an attribute");
    }
 
@@ -108,7 +108,7 @@ DefineRelation(CreateStmt *stmt)
                    for (i = 0; i < ncheck; i++)
                    {
                        if (strcmp(check[i].ccname, cdef->name) == 0)
-                           elog(WARN, "DefineRelation: name (%s) of CHECK constraint duplicated", cdef->name);
+                           elog(ABORT, "DefineRelation: name (%s) of CHECK constraint duplicated", cdef->name);
                    }
                    check[ncheck].ccname = cdef->name;
                }
@@ -218,7 +218,7 @@ MergeAttributes(List *schema, List *supers, List **supconstr)
 
            if (!strcmp(coldef->colname, restdef->colname))
            {
-               elog(WARN, "attribute '%s' duplicated",
+               elog(ABORT, "attribute '%s' duplicated",
                     coldef->colname);
            }
        }
@@ -231,7 +231,7 @@ MergeAttributes(List *schema, List *supers, List **supconstr)
        {
            if (!strcmp(strVal(lfirst(entry)), strVal(lfirst(rest))))
            {
-               elog(WARN, "relation '%s' duplicated",
+               elog(ABORT, "relation '%s' duplicated",
                     strVal(lfirst(entry)));
            }
        }
@@ -252,12 +252,12 @@ MergeAttributes(List *schema, List *supers, List **supconstr)
        relation = heap_openr(name);
        if (relation == NULL)
        {
-           elog(WARN,
+           elog(ABORT,
            "MergeAttr: Can't inherit from non-existent superclass '%s'", name);
        }
        if (relation->rd_rel->relkind == 'S')
        {
-           elog(WARN, "MergeAttr: Can't inherit from sequence superclass '%s'", name);
+           elog(ABORT, "MergeAttr: Can't inherit from sequence superclass '%s'", name);
        }
        tupleDesc = RelationGetTupleDescriptor(relation);
        constr = tupleDesc->constr;
@@ -567,7 +567,7 @@ checkAttrExists(char *attributeName, char *attributeType, List *schema)
             */
            if (strcmp(attributeType, def->typename->name) != 0)
            {
-               elog(WARN, "%s and %s conflict for %s",
+               elog(ABORT, "%s and %s conflict for %s",
                     attributeType, def->typename->name, attributeName);
            }
            return 1;
index dc685022b20226406b733857bad571c773a207d2..83259a8e208516df9e717e33f71566a550aa9a8d 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.3 1997/12/11 17:36:04 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.4 1998/01/05 03:30:44 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -75,12 +75,12 @@ createdb(char *dbname, char *dbpath)
    lp = ExpandDatabasePath(loc);
 
    if (lp == NULL)
-       elog(WARN,"Unable to locate path '%s'"
+       elog(ABORT,"Unable to locate path '%s'"
            "\n\tThis may be due to a missing environment variable"
            " in the server",loc);
 
    if (mkdir(lp,S_IRWXU) != 0)
-       elog(WARN,"Unable to create database directory %s",lp);
+       elog(ABORT,"Unable to create database directory %s",lp);
 
    sprintf(buf, "%s %s%cbase%ctemplate1%c* %s",
            COPY_CMD, DataDir, SEP_CHAR, SEP_CHAR, SEP_CHAR, lp);
@@ -123,7 +123,7 @@ destroydb(char *dbname)
 
    path = ExpandDatabasePath(dbpath);
     if (path == NULL)
-       elog(WARN,"Unable to locate path '%s'"
+       elog(ABORT,"Unable to locate path '%s'"
            "\n\tThis may be due to a missing environment variable"
            " in the server",dbpath);
 
@@ -161,7 +161,7 @@ get_pg_dbtup(char *command, char *dbname, Relation dbrel)
 
    scan = heap_beginscan(dbrel, 0, false, 1, &scanKey);
    if (!HeapScanIsValid(scan))
-       elog(WARN, "%s: cannot begin scan of pg_database.", command);
+       elog(ABORT, "%s: cannot begin scan of pg_database.", command);
 
    /*
     * since we want to return the tuple out of this proc, and we're going
@@ -185,7 +185,7 @@ get_pg_dbtup(char *command, char *dbname, Relation dbrel)
  * check_permissions() -- verify that the user is permitted to do this.
  *
  * If the user is not allowed to carry out this operation, this routine
- * elog(WARN, ...)s, which will abort the xact.  As a side effect, the
+ * elog(ABORT, ...)s, which will abort the xact.  As a side effect, the
  * user's pg_user tuple OID is returned in userIdP and the target database's
  * OID is returned in dbIdP.
  */
@@ -218,20 +218,20 @@ check_permissions(char *command,
    /* Check to make sure user has permission to use createdb */
    if (!use_createdb)
    {
-       elog(WARN, "user \"%s\" is not allowed to create/destroy databases",
+       elog(ABORT, "user \"%s\" is not allowed to create/destroy databases",
             userName);
    }
 
    /* Make sure we are not mucking with the template database */
    if (!strcmp(dbname, "template1"))
    {
-       elog(WARN, "%s cannot be executed on the template database.", command);
+       elog(ABORT, "%s cannot be executed on the template database.", command);
    }
 
    /* Check to make sure database is not the currently open database */
    if (!strcmp(dbname, GetDatabaseName()))
    {
-       elog(WARN, "%s cannot be executed on an open database", command);
+       elog(ABORT, "%s cannot be executed on an open database", command);
    }
 
    /* Check to make sure database is owned by this user */
@@ -285,20 +285,20 @@ check_permissions(char *command,
    if (dbfound && !strcmp(command, "createdb"))
    {
 
-       elog(WARN, "createdb: database %s already exists.", dbname);
+       elog(ABORT, "createdb: database %s already exists.", dbname);
 
    }
    else if (!dbfound && !strcmp(command, "destroydb"))
    {
 
-       elog(WARN, "destroydb: database %s does not exist.", dbname);
+       elog(ABORT, "destroydb: database %s does not exist.", dbname);
 
    }
    else if (dbfound && !strcmp(command, "destroydb")
             && dbowner != *userIdP && use_super == false)
    {
 
-       elog(WARN, "%s: database %s is not owned by you.", command, dbname);
+       elog(ABORT, "%s: database %s is not owned by you.", command, dbname);
 
    }
 
@@ -332,7 +332,7 @@ stop_vacuum(char *dbpath, char *dbname)
        FreeFile(fp);
        if (kill(pid, SIGKILLDAEMON1) < 0)
        {
-           elog(WARN, "can't kill vacuum daemon (pid %d) on %s",
+           elog(ABORT, "can't kill vacuum daemon (pid %d) on %s",
                 pid, dbname);
        }
    }
index 9be89e1871adf768dc351ca34231b92636085516..485bc3f20cb012b256d22e9f199d94739cbe8e52 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.18 1997/12/22 05:41:49 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.19 1998/01/05 03:30:46 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -95,7 +95,7 @@ DefineIndex(char *heapRelationName,
    numberOfAttributes = length(attributeList);
    if (numberOfAttributes <= 0)
    {
-       elog(WARN, "DefineIndex: must specify at least one attribute");
+       elog(ABORT, "DefineIndex: must specify at least one attribute");
    }
 
    /*
@@ -106,16 +106,16 @@ DefineIndex(char *heapRelationName,
                                0, 0, 0);
    if (!HeapTupleIsValid(tuple))
    {
-       elog(WARN, "DefineIndex: %s relation not found",
+       elog(ABORT, "DefineIndex: %s relation not found",
             heapRelationName);
    }
    relationId = tuple->t_oid;
 
    if (unique && strcmp(accessMethodName, "btree") != 0)
-       elog(WARN, "DefineIndex: unique indices are only available with the btree access method");
+       elog(ABORT, "DefineIndex: unique indices are only available with the btree access method");
 
    if (numberOfAttributes > 1 && strcmp(accessMethodName, "btree") != 0)
-       elog(WARN, "DefineIndex: multi-column indices are only available with the btree access method");
+       elog(ABORT, "DefineIndex: multi-column indices are only available with the btree access method");
 
    /*
     * compute access method id
@@ -124,7 +124,7 @@ DefineIndex(char *heapRelationName,
                                0, 0, 0);
    if (!HeapTupleIsValid(tuple))
    {
-       elog(WARN, "DefineIndex: %s access method not found",
+       elog(ABORT, "DefineIndex: %s access method not found",
             accessMethodName);
    }
    accessMethodId = tuple->t_oid;
@@ -168,7 +168,7 @@ DefineIndex(char *heapRelationName,
        nargs = length(funcIndex->args);
        if (nargs > INDEX_MAX_KEYS)
        {
-           elog(WARN,
+           elog(ABORT,
                 "Too many args to function, limit of %d",
                 INDEX_MAX_KEYS);
        }
@@ -250,7 +250,7 @@ ExtendIndex(char *indexRelationName, Expr *predicate, List *rangetable)
                                0, 0, 0);
    if (!HeapTupleIsValid(tuple))
    {
-       elog(WARN, "ExtendIndex: %s index not found",
+       elog(ABORT, "ExtendIndex: %s index not found",
             indexRelationName);
    }
    indexId = tuple->t_oid;
@@ -264,7 +264,7 @@ ExtendIndex(char *indexRelationName, Expr *predicate, List *rangetable)
                                0, 0, 0);
    if (!HeapTupleIsValid(tuple))
    {
-       elog(WARN, "ExtendIndex: %s is not an index",
+       elog(ABORT, "ExtendIndex: %s is not an index",
             indexRelationName);
    }
 
@@ -290,7 +290,7 @@ ExtendIndex(char *indexRelationName, Expr *predicate, List *rangetable)
        pfree(predString);
    }
    if (oldPred == NULL)
-       elog(WARN, "ExtendIndex: %s is not a partial index",
+       elog(ABORT, "ExtendIndex: %s is not a partial index",
             indexRelationName);
 
    /*
@@ -334,7 +334,7 @@ ExtendIndex(char *indexRelationName, Expr *predicate, List *rangetable)
                                    ObjectIdGetDatum(indproc),
                                    0, 0, 0);
        if (!HeapTupleIsValid(tuple))
-           elog(WARN, "ExtendIndex: index procedure not found");
+           elog(ABORT, "ExtendIndex: index procedure not found");
 
        namecpy(&(funcInfo->funcName),
                &(((Form_pg_proc) GETSTRUCT(tuple))->proname));
@@ -388,7 +388,7 @@ CheckPredExpr(Node *predicate, List *rangeTable, Oid baseRelOid)
    else if (or_clause(predicate) || and_clause(predicate))
        clauses = ((Expr *) predicate)->args;
    else
-       elog(WARN, "Unsupported partial-index predicate expression type");
+       elog(ABORT, "Unsupported partial-index predicate expression type");
 
    foreach(clause, clauses)
    {
@@ -409,11 +409,11 @@ CheckPredClause(Expr *predicate, List *rangeTable, Oid baseRelOid)
        !IsA(pred_var, Var) ||
        !IsA(pred_const, Const))
    {
-       elog(WARN, "Unsupported partial-index predicate clause type");
+       elog(ABORT, "Unsupported partial-index predicate clause type");
    }
 
    if (getrelid(pred_var->varno, rangeTable) != baseRelOid)
-       elog(WARN,
+       elog(ABORT,
         "Partial-index predicates may refer only to the base relation");
 }
 
@@ -435,7 +435,7 @@ FuncIndexArgs(IndexElem *funcIndex,
 
    if (!HeapTupleIsValid(tuple))
    {
-       elog(WARN, "DefineIndex: %s class not found",
+       elog(ABORT, "DefineIndex: %s class not found",
             funcIndex->class);
    }
    *opOidP = tuple->t_oid;
@@ -457,7 +457,7 @@ FuncIndexArgs(IndexElem *funcIndex,
 
        if (!HeapTupleIsValid(tuple))
        {
-           elog(WARN,
+           elog(ABORT,
                 "DefineIndex: attribute \"%s\" not found",
                 arg);
        }
@@ -488,7 +488,7 @@ NormIndexAttrs(List *attList,   /* list of IndexElem's */
        attribute = lfirst(rest);
 
        if (attribute->name == NULL)
-           elog(WARN, "missing attribute for define index");
+           elog(ABORT, "missing attribute for define index");
 
        tuple = SearchSysCacheTuple(ATTNAME,
                                    ObjectIdGetDatum(relId),
@@ -496,7 +496,7 @@ NormIndexAttrs(List *attList,   /* list of IndexElem's */
                                    0, 0);
        if (!HeapTupleIsValid(tuple))
        {
-           elog(WARN,
+           elog(ABORT,
                 "DefineIndex: attribute \"%s\" not found",
                 attribute->name);
        }
@@ -510,7 +510,7 @@ NormIndexAttrs(List *attList,   /* list of IndexElem's */
            attribute->class = GetDefaultOpClass(attform->atttypid);
            if (attribute->class == NULL)
            {
-               elog(WARN,
+               elog(ABORT,
                     "Can't find a default operator class for type %d.",
                     attform->atttypid);
            }
@@ -522,7 +522,7 @@ NormIndexAttrs(List *attList,   /* list of IndexElem's */
 
        if (!HeapTupleIsValid(tuple))
        {
-           elog(WARN, "DefineIndex: %s class not found",
+           elog(ABORT, "DefineIndex: %s class not found",
                 attribute->class);
        }
        *opOidP++ = tuple->t_oid;
@@ -565,12 +565,12 @@ RemoveIndex(char *name)
 
    if (!HeapTupleIsValid(tuple))
    {
-       elog(WARN, "index \"%s\" nonexistent", name);
+       elog(ABORT, "index \"%s\" nonexistent", name);
    }
 
    if (((Form_pg_class) GETSTRUCT(tuple))->relkind != RELKIND_INDEX)
    {
-       elog(WARN, "relation \"%s\" is of type \"%c\"",
+       elog(ABORT, "relation \"%s\" is of type \"%c\"",
             name,
             ((Form_pg_class) GETSTRUCT(tuple))->relkind);
    }
index 5fabdcb92dfa2e59e05ea3f79a5f4628f78f2bad..5ea03bfcfb93844cdefe6434055331ac5374a4e6 100644 (file)
@@ -9,7 +9,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.19 1997/12/05 01:12:40 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.20 1998/01/05 03:30:48 momjian Exp $
  *
  * DESCRIPTION
  *   The "DefineFoo" routines take the parse tree and pick out the
@@ -140,7 +140,7 @@ compute_full_attributes(const List *parameters, int32 *byte_pct_p,
             * we don't have untrusted functions any more. The 4.2
             * implementation is lousy anyway so I took it out. -ay 10/94
             */
-           elog(WARN, "untrusted function has been decommissioned.");
+           elog(ABORT, "untrusted function has been decommissioned.");
        }
        else if (strcasecmp(param->name, "byte_pct") == 0)
        {
@@ -275,7 +275,7 @@ CreateFunction(ProcedureStmt *stmt, CommandDest dest)
        
        if (!HeapTupleIsValid(languageTuple)) {
 
-           elog(WARN,
+           elog(ABORT,
             "Unrecognized language specified in a CREATE FUNCTION: "
             "'%s'.  Recognized languages are sql, C, internal "
             "and the created procedural languages.",
@@ -285,7 +285,7 @@ CreateFunction(ProcedureStmt *stmt, CommandDest dest)
        /* Check that this language is a PL */
        languageStruct = (Form_pg_language) GETSTRUCT(languageTuple);
        if (!(languageStruct->lanispl)) {
-           elog(WARN,
+           elog(ABORT,
                "Language '%s' isn't defined as PL", languageName);
        }
 
@@ -294,7 +294,7 @@ CreateFunction(ProcedureStmt *stmt, CommandDest dest)
         * restricted to be defined by postgres superusers only
         */
        if (languageStruct->lanpltrusted == false && !superuser()) {
-           elog(WARN, "Only users with Postgres superuser privilege "
+           elog(ABORT, "Only users with Postgres superuser privilege "
                "are permitted to create a function in the '%s' "
            "language.",
            languageName);
@@ -313,7 +313,7 @@ CreateFunction(ProcedureStmt *stmt, CommandDest dest)
    interpret_AS_clause(languageName, stmt->as, &prosrc_str, &probin_str);
 
    if (strcmp(languageName, "sql") != 0 && lanisPL == false && !superuser())
-       elog(WARN,
+       elog(ABORT,
             "Only users with Postgres superuser privilege are permitted "
             "to create a function "
             "in the '%s' language.  Others may use the 'sql' language "
@@ -388,7 +388,7 @@ DefineOperator(char *oprName,
        {
            /* see gram.y, must be setof */
            if (nodeTag(defel->arg) == T_TypeName)
-               elog(WARN, "setof type not implemented for leftarg");
+               elog(ABORT, "setof type not implemented for leftarg");
 
            if (nodeTag(defel->arg) == T_String)
            {
@@ -396,14 +396,14 @@ DefineOperator(char *oprName,
            }
            else
            {
-               elog(WARN, "type for leftarg is malformed.");
+               elog(ABORT, "type for leftarg is malformed.");
            }
        }
        else if (!strcasecmp(defel->defname, "rightarg"))
        {
            /* see gram.y, must be setof */
            if (nodeTag(defel->arg) == T_TypeName)
-               elog(WARN, "setof type not implemented for rightarg");
+               elog(ABORT, "setof type not implemented for rightarg");
 
            if (nodeTag(defel->arg) == T_String)
            {
@@ -411,7 +411,7 @@ DefineOperator(char *oprName,
            }
            else
            {
-               elog(WARN, "type for rightarg is malformed.");
+               elog(ABORT, "type for rightarg is malformed.");
            }
        }
        else if (!strcasecmp(defel->defname, "procedure"))
@@ -474,7 +474,7 @@ DefineOperator(char *oprName,
     */
    if (functionName == NULL)
    {
-       elog(WARN, "Define: \"procedure\" unspecified");
+       elog(ABORT, "Define: \"procedure\" unspecified");
    }
 
    /* ----------------
@@ -579,16 +579,16 @@ DefineAggregate(char *aggName, List *parameters)
     * make sure we have our required definitions
     */
    if (baseType == NULL)
-       elog(WARN, "Define: \"basetype\" unspecified");
+       elog(ABORT, "Define: \"basetype\" unspecified");
    if (stepfunc1Name != NULL)
    {
        if (stepfunc1Type == NULL)
-           elog(WARN, "Define: \"stype1\" unspecified");
+           elog(ABORT, "Define: \"stype1\" unspecified");
    }
    if (stepfunc2Name != NULL)
    {
        if (stepfunc2Type == NULL)
-           elog(WARN, "Define: \"stype2\" unspecified");
+           elog(ABORT, "Define: \"stype2\" unspecified");
    }
 
    /*
@@ -635,7 +635,7 @@ DefineType(char *typeName, List *parameters)
     */
    if (strlen(typeName) >= (NAMEDATALEN - 1))
    {
-       elog(WARN, "DefineType: type names must be %d characters or less",
+       elog(ABORT, "DefineType: type names must be %d characters or less",
             NAMEDATALEN - 1);
    }
 
@@ -699,7 +699,7 @@ DefineType(char *typeName, List *parameters)
            }
            else
            {
-               elog(WARN, "DefineType: \"%s\" alignment  not recognized",
+               elog(ABORT, "DefineType: \"%s\" alignment  not recognized",
                     a);
            }
        }
@@ -714,9 +714,9 @@ DefineType(char *typeName, List *parameters)
     * make sure we have our required definitions
     */
    if (inputName == NULL)
-       elog(WARN, "Define: \"input\" unspecified");
+       elog(ABORT, "Define: \"input\" unspecified");
    if (outputName == NULL)
-       elog(WARN, "Define: \"output\" unspecified");
+       elog(ABORT, "Define: \"output\" unspecified");
 
    /* ----------------
     *  now have TypeCreate do all the real work.
@@ -766,7 +766,7 @@ static char *
 defGetString(DefElem *def)
 {
    if (nodeTag(def->arg) != T_String)
-       elog(WARN, "Define: \"%s\" = what?", def->defname);
+       elog(ABORT, "Define: \"%s\" = what?", def->defname);
    return (strVal(def->arg));
 }
 
@@ -779,6 +779,6 @@ defGetTypeLength(DefElem *def)
             !strcasecmp(strVal(def->arg), "variable"))
        return -1;              /* variable length */
 
-   elog(WARN, "Define: \"%s\" = what?", def->defname);
+   elog(ABORT, "Define: \"%s\" = what?", def->defname);
    return -1;
 }
index caa1c8b832fc3073651cfbf5a562c35cf0bf9361..1044ce9a7b7d54609c46cbd5fdd09d30351678c2 100644 (file)
@@ -64,7 +64,7 @@ CreateProceduralLanguage(CreatePLangStmt * stmt)
     */
    if (!superuser())
    {
-       elog(WARN, "Only users with Postgres superuser privilege are "
+       elog(ABORT, "Only users with Postgres superuser privilege are "
             "permitted to create procedural languages");
    }
 
@@ -80,7 +80,7 @@ CreateProceduralLanguage(CreatePLangStmt * stmt)
                                  0, 0, 0);
    if (HeapTupleIsValid(langTup))
    {
-       elog(WARN, "Language %s already exists", languageName);
+       elog(ABORT, "Language %s already exists", languageName);
    }
 
    /* ----------------
@@ -96,12 +96,12 @@ CreateProceduralLanguage(CreatePLangStmt * stmt)
                                  0);
    if (!HeapTupleIsValid(procTup))
    {
-       elog(WARN, "PL handler function %s() doesn't exist",
+       elog(ABORT, "PL handler function %s() doesn't exist",
             stmt->plhandler);
    }
    if (((Form_pg_proc) GETSTRUCT(procTup))->prorettype != InvalidOid)
    {
-       elog(WARN, "PL handler function %s() isn't of return type Opaque",
+       elog(ABORT, "PL handler function %s() isn't of return type Opaque",
             stmt->plhandler);
    }
 
@@ -155,7 +155,7 @@ DropProceduralLanguage(DropPLangStmt * stmt)
     */
    if (!superuser())
    {
-       elog(WARN, "Only users with Postgres superuser privilege are "
+       elog(ABORT, "Only users with Postgres superuser privilege are "
             "permitted to drop procedural languages");
    }
 
@@ -171,12 +171,12 @@ DropProceduralLanguage(DropPLangStmt * stmt)
                                  0, 0, 0);
    if (!HeapTupleIsValid(langTup))
    {
-       elog(WARN, "Language %s doesn't exist", languageName);
+       elog(ABORT, "Language %s doesn't exist", languageName);
    }
 
    if (!((Form_pg_language) GETSTRUCT(langTup))->lanispl)
    {
-       elog(WARN, "Language %s isn't a created procedural language",
+       elog(ABORT, "Language %s isn't a created procedural language",
             languageName);
    }
 
@@ -195,7 +195,7 @@ DropProceduralLanguage(DropPLangStmt * stmt)
 
    if (!HeapTupleIsValid(tup))
    {
-       elog(WARN, "Language with name '%s' not found", languageName);
+       elog(ABORT, "Language with name '%s' not found", languageName);
    }
 
    heap_delete(rdesc, &(tup->t_ctid));
index 288cbf9eb8b64e879479041c6682f51f4dda6a58..e66aad9dc61acd1541c4e3212dfe8163c862559f 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.15 1997/11/28 17:27:08 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.16 1998/01/05 03:30:50 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -402,7 +402,7 @@ tg_rewriteQuery(TgRecipe * r,
    {
        if (nodeTag(orig->qual) == T_List)
        {
-           elog(WARN, "tg_rewriteQuery: Whoa! why is my qual a List???");
+           elog(ABORT, "tg_rewriteQuery: Whoa! why is my qual a List???");
        }
        orig->qual = tg_rewriteParamsInExpr(orig->qual, inputQlist);
    }
@@ -629,7 +629,7 @@ tg_rewriteParamsInExpr(Node *expression, QueryTreeList *inputQlist)
                        }
                        else
                        {
-                           elog(WARN, "tg_rewriteParamsInExpr:can't substitute for parameter %d when that input is unconnected", p->paramid);
+                           elog(ABORT, "tg_rewriteParamsInExpr:can't substitute for parameter %d when that input is unconnected", p->paramid);
                        }
 
                    }
@@ -719,13 +719,13 @@ getParamTypes(TgElement * elem, Oid typev[])
    {
        if (parameterCount == 8)
        {
-           elog(WARN,
+           elog(ABORT,
                 "getParamTypes: Ingredients cannot take > 8 arguments");
        }
        t = elem->inTypes->val[j];
        if (strcmp(t, "opaque") == 0)
        {
-           elog(WARN,
+           elog(ABORT,
                 "getParamTypes: Ingredient functions cannot take type 'opaque'");
        }
        else
@@ -733,7 +733,7 @@ getParamTypes(TgElement * elem, Oid typev[])
            toid = TypeGet(elem->inTypes->val[j], &defined);
            if (!OidIsValid(toid))
            {
-               elog(WARN, "getParamTypes: arg type '%s' is not defined", t);
+               elog(ABORT, "getParamTypes: arg type '%s' is not defined", t);
            }
            if (!defined)
            {
index 393b9e713e29b75051a411f0ba14d03084394e08..e8d0b7277171ed65ffe375f9fcc080886833c786 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.18 1997/11/28 17:27:10 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.19 1998/01/05 03:30:51 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -65,7 +65,7 @@ RemoveOperator(char *operatorName,        /* operator name */
        typeId1 = TypeGet(typeName1, &defined);
        if (!OidIsValid(typeId1))
        {
-           elog(WARN, "RemoveOperator: type '%s' does not exist", typeName1);
+           elog(ABORT, "RemoveOperator: type '%s' does not exist", typeName1);
            return;
        }
    }
@@ -75,7 +75,7 @@ RemoveOperator(char *operatorName,        /* operator name */
        typeId2 = TypeGet(typeName2, &defined);
        if (!OidIsValid(typeId2))
        {
-           elog(WARN, "RemoveOperator: type '%s' does not exist", typeName2);
+           elog(ABORT, "RemoveOperator: type '%s' does not exist", typeName2);
            return;
        }
    }
@@ -105,7 +105,7 @@ RemoveOperator(char *operatorName,      /* operator name */
        if (!pg_ownercheck(userName,
                           (char *) ObjectIdGetDatum(tup->t_oid),
                           OPROID))
-           elog(WARN, "RemoveOperator: operator '%s': permission denied",
+           elog(ABORT, "RemoveOperator: operator '%s': permission denied",
                 operatorName);
 #endif
        ItemPointerCopy(&tup->t_ctid, &itemPointerData);
@@ -115,20 +115,20 @@ RemoveOperator(char *operatorName,        /* operator name */
    {
        if (OidIsValid(typeId1) && OidIsValid(typeId2))
        {
-           elog(WARN, "RemoveOperator: binary operator '%s' taking '%s' and '%s' does not exist",
+           elog(ABORT, "RemoveOperator: binary operator '%s' taking '%s' and '%s' does not exist",
                 operatorName,
                 typeName1,
                 typeName2);
        }
        else if (OidIsValid(typeId1))
        {
-           elog(WARN, "RemoveOperator: right unary operator '%s' taking '%s' does not exist",
+           elog(ABORT, "RemoveOperator: right unary operator '%s' taking '%s' does not exist",
                 operatorName,
                 typeName1);
        }
        else
        {
-           elog(WARN, "RemoveOperator: left unary operator '%s' taking '%s' does not exist",
+           elog(ABORT, "RemoveOperator: left unary operator '%s' taking '%s' does not exist",
                 operatorName,
                 typeName2);
        }
@@ -272,7 +272,7 @@ RemoveType(char *typeName)      /* type name to be removed */
 #ifndef NO_SECURITY
    userName = GetPgUserName();
    if (!pg_ownercheck(userName, typeName, TYPNAME))
-       elog(WARN, "RemoveType: type '%s': permission denied",
+       elog(ABORT, "RemoveType: type '%s': permission denied",
             typeName);
 #endif
 
@@ -290,7 +290,7 @@ RemoveType(char *typeName)      /* type name to be removed */
    {
        heap_endscan(scan);
        heap_close(relation);
-       elog(WARN, "RemoveType: type '%s' does not exist",
+       elog(ABORT, "RemoveType: type '%s' does not exist",
             typeName);
    }
    typeOid = tup->t_oid;
@@ -308,7 +308,7 @@ RemoveType(char *typeName)      /* type name to be removed */
 
    if (!HeapTupleIsValid(tup))
    {
-       elog(WARN, "RemoveType: type '%s': array stub not found",
+       elog(ABORT, "RemoveType: type '%s': array stub not found",
             typeName);
    }
    typeOid = tup->t_oid;
@@ -364,7 +364,7 @@ RemoveFunction(char *functionName,      /* function name to be removed */
 
            if (!HeapTupleIsValid(tup))
            {
-               elog(WARN, "RemoveFunction: type '%s' not found", typename);
+               elog(ABORT, "RemoveFunction: type '%s' not found", typename);
            }
            argList[i] = tup->t_oid;
        }
@@ -380,7 +380,7 @@ RemoveFunction(char *functionName,      /* function name to be removed */
    userName = GetPgUserName();
    if (!pg_func_ownercheck(userName, functionName, nargs, argList))
    {
-       elog(WARN, "RemoveFunction: function '%s': permission denied",
+       elog(ABORT, "RemoveFunction: function '%s': permission denied",
             functionName);
    }
 #endif
@@ -420,7 +420,7 @@ RemoveFunction(char *functionName,      /* function name to be removed */
    /* ok, function has been found */
 
    if (the_proc->prolang == INTERNALlanguageId)
-       elog(WARN, "RemoveFunction: function \"%s\" is built-in",
+       elog(ABORT, "RemoveFunction: function \"%s\" is built-in",
             functionName);
 
    ItemPointerCopy(&tup->t_ctid, &itemPointerData);
@@ -457,7 +457,7 @@ RemoveAggregate(char *aggName, char *aggType)
        basetypeID = TypeGet(aggType, &defined);
        if (!OidIsValid(basetypeID))
        {
-           elog(WARN, "RemoveAggregate: type '%s' does not exist", aggType);
+           elog(ABORT, "RemoveAggregate: type '%s' does not exist", aggType);
        }
    }
    else
@@ -473,12 +473,12 @@ RemoveAggregate(char *aggName, char *aggType)
    {
        if (aggType)
        {
-           elog(WARN, "RemoveAggregate: aggregate '%s' on type '%s': permission denied",
+           elog(ABORT, "RemoveAggregate: aggregate '%s' on type '%s': permission denied",
                 aggName, aggType);
        }
        else
        {
-           elog(WARN, "RemoveAggregate: aggregate '%s': permission denied",
+           elog(ABORT, "RemoveAggregate: aggregate '%s': permission denied",
                 aggName);
        }
    }
@@ -505,12 +505,12 @@ RemoveAggregate(char *aggName, char *aggType)
        heap_close(relation);
        if (aggType)
        {
-           elog(WARN, "RemoveAggregate: aggregate '%s' for '%s' does not exist",
+           elog(ABORT, "RemoveAggregate: aggregate '%s' for '%s' does not exist",
                 aggName, aggType);
        }
        else
        {
-           elog(WARN, "RemoveAggregate: aggregate '%s' for all types does not exist",
+           elog(ABORT, "RemoveAggregate: aggregate '%s' for all types does not exist",
                 aggName);
        }
    }
index d96fb762f28cefd51666918babec86c0a2d393ec..01b1168742ef55771d8c731b758a357d25acf0c4 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.9 1997/09/08 02:22:14 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.10 1998/01/05 03:30:52 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -81,12 +81,12 @@ renameatt(char *relname,
     * normally, only the owner of a class can change its schema.
     */
    if (IsSystemRelationName(relname))
-       elog(WARN, "renameatt: class \"%s\" is a system catalog",
+       elog(ABORT, "renameatt: class \"%s\" is a system catalog",
             relname);
 #ifndef NO_SECURITY
    if (!IsBootstrapProcessingMode() &&
        !pg_ownercheck(userName, relname, RELNAME))
-       elog(WARN, "renameatt: you do not own class \"%s\"",
+       elog(ABORT, "renameatt: you do not own class \"%s\"",
             relname);
 #endif
 
@@ -109,7 +109,7 @@ renameatt(char *relname,
        relrdesc = heap_openr(relname);
        if (!RelationIsValid(relrdesc))
        {
-           elog(WARN, "renameatt: unknown relation: \"%s\"",
+           elog(ABORT, "renameatt: unknown relation: \"%s\"",
                 relname);
        }
        myrelid = relrdesc->rd_id;
@@ -134,7 +134,7 @@ renameatt(char *relname,
            relrdesc = heap_open(childrelid);
            if (!RelationIsValid(relrdesc))
            {
-               elog(WARN, "renameatt: can't find catalog entry for inheriting class with oid %d",
+               elog(ABORT, "renameatt: can't find catalog entry for inheriting class with oid %d",
                     childrelid);
            }
            childname = (relrdesc->rd_rel->relname).data;
@@ -149,7 +149,7 @@ renameatt(char *relname,
    if (!PointerIsValid(reltup))
    {
        heap_close(relrdesc);
-       elog(WARN, "renameatt: relation \"%s\" nonexistent",
+       elog(ABORT, "renameatt: relation \"%s\" nonexistent",
             relname);
        return;
    }
@@ -160,12 +160,12 @@ renameatt(char *relname,
    if (!PointerIsValid(oldatttup))
    {
        heap_close(attrdesc);
-       elog(WARN, "renameatt: attribute \"%s\" nonexistent",
+       elog(ABORT, "renameatt: attribute \"%s\" nonexistent",
             oldattname);
    }
    if (((AttributeTupleForm) GETSTRUCT(oldatttup))->attnum < 0)
    {
-       elog(WARN, "renameatt: system attribute \"%s\" not renamed",
+       elog(ABORT, "renameatt: system attribute \"%s\" not renamed",
             oldattname);
    }
 
@@ -174,7 +174,7 @@ renameatt(char *relname,
    {
        pfree(oldatttup);
        heap_close(attrdesc);
-       elog(WARN, "renameatt: attribute \"%s\" exists",
+       elog(ABORT, "renameatt: attribute \"%s\" exists",
             newattname);
    }
 
@@ -223,13 +223,13 @@ renamerel(char oldrelname[], char newrelname[])
 
    if (IsSystemRelationName(oldrelname))
    {
-       elog(WARN, "renamerel: system relation \"%s\" not renamed",
+       elog(ABORT, "renamerel: system relation \"%s\" not renamed",
             oldrelname);
        return;
    }
    if (IsSystemRelationName(newrelname))
    {
-       elog(WARN, "renamerel: Illegal class name: \"%s\" -- pg_ is reserved for system catalogs",
+       elog(ABORT, "renamerel: Illegal class name: \"%s\" -- pg_ is reserved for system catalogs",
             newrelname);
        return;
    }
@@ -240,7 +240,7 @@ renamerel(char oldrelname[], char newrelname[])
    if (!PointerIsValid(oldreltup))
    {
        heap_close(relrdesc);
-       elog(WARN, "renamerel: relation \"%s\" does not exist",
+       elog(ABORT, "renamerel: relation \"%s\" does not exist",
             oldrelname);
    }
 
@@ -249,7 +249,7 @@ renamerel(char oldrelname[], char newrelname[])
    {
        pfree(oldreltup);
        heap_close(relrdesc);
-       elog(WARN, "renamerel: relation \"%s\" exists",
+       elog(ABORT, "renamerel: relation \"%s\" exists",
             newrelname);
    }
 
@@ -257,7 +257,7 @@ renamerel(char oldrelname[], char newrelname[])
    strcpy(oldpath, relpath(oldrelname));
    strcpy(newpath, relpath(newrelname));
    if (rename(oldpath, newpath) < 0)
-       elog(WARN, "renamerel: unable to rename file: %m");
+       elog(ABORT, "renamerel: unable to rename file: %m");
 
    memmove((char *) (((Form_pg_class) GETSTRUCT(oldreltup))->relname.data),
            newrelname,
index 25e5ef2c06000975da2e3b32d3bb3bfee9d98f22..8429e18ac3a8c979eb7ca688fa820609c0092efd 100644 (file)
@@ -175,7 +175,7 @@ DefineSequence(CreateSeqStmt *seq)
    buf = ReadBuffer(rel, P_NEW);
 
    if (!BufferIsValid(buf))
-       elog(WARN, "DefineSequence: ReadBuffer failed");
+       elog(ABORT, "DefineSequence: ReadBuffer failed");
 
    page = (PageHeader) BufferGetPage(buf);
 
@@ -188,7 +188,7 @@ DefineSequence(CreateSeqStmt *seq)
    heap_insert(rel, tuple);
 
    if (WriteBuffer(buf) == STATUS_ERROR)
-       elog(WARN, "DefineSequence: WriteBuffer failed");
+       elog(ABORT, "DefineSequence: WriteBuffer failed");
 
    RelationUnsetLockForWrite(rel);
    heap_close(rel);
@@ -251,7 +251,7 @@ nextval(struct varlena * seqin)
                if (rescnt > 0)
                    break;      /* stop caching */
                if (seq->is_cycled != 't')
-                   elog(WARN, "%s.nextval: got MAXVALUE (%d)",
+                   elog(ABORT, "%s.nextval: got MAXVALUE (%d)",
                         elm->name, maxv);
                next = minv;
            }
@@ -267,7 +267,7 @@ nextval(struct varlena * seqin)
                if (rescnt > 0)
                    break;      /* stop caching */
                if (seq->is_cycled != 't')
-                   elog(WARN, "%s.nextval: got MINVALUE (%d)",
+                   elog(ABORT, "%s.nextval: got MINVALUE (%d)",
                         elm->name, minv);
                next = maxv;
            }
@@ -288,7 +288,7 @@ nextval(struct varlena * seqin)
    seq->is_called = 't';
 
    if (WriteBuffer(buf) == STATUS_ERROR)
-       elog(WARN, "%s.nextval: WriteBuffer failed", elm->name);
+       elog(ABORT, "%s.nextval: WriteBuffer failed", elm->name);
 
    ItemPointerSet(&iptr, 0, FirstOffsetNumber);
    RelationUnsetSingleWLockPage(elm->rel, &iptr);
@@ -311,7 +311,7 @@ currval(struct varlena * seqin)
 
    if (elm->increment == 0)    /* nextval/read_info were not called */
    {
-       elog(WARN, "%s.currval is not yet defined in this session", elm->name);
+       elog(ABORT, "%s.currval is not yet defined in this session", elm->name);
    }
 
    result = elm->last;
@@ -334,18 +334,18 @@ read_info(char *caller, SeqTable elm, Buffer *buf)
    RelationSetSingleWLockPage(elm->rel, &iptr);
 
    if (RelationGetNumberOfBlocks(elm->rel) != 1)
-       elog(WARN, "%s.%s: invalid number of blocks in sequence",
+       elog(ABORT, "%s.%s: invalid number of blocks in sequence",
             elm->name, caller);
 
    *buf = ReadBuffer(elm->rel, 0);
    if (!BufferIsValid(*buf))
-       elog(WARN, "%s.%s: ReadBuffer failed", elm->name, caller);
+       elog(ABORT, "%s.%s: ReadBuffer failed", elm->name, caller);
 
    page = (PageHeader) BufferGetPage(*buf);
    sm = (sequence_magic *) PageGetSpecialPointer(page);
 
    if (sm->magic != SEQ_MAGIC)
-       elog(WARN, "%s.%s: bad magic (%08X)", elm->name, caller, sm->magic);
+       elog(ABORT, "%s.%s: bad magic (%08X)", elm->name, caller, sm->magic);
 
    lp = PageGetItemId(page, FirstOffsetNumber);
    Assert(ItemIdIsUsed(lp));
@@ -395,12 +395,12 @@ init_sequence(char *caller, char *name)
    temp->rel = heap_openr(name);
 
    if (!RelationIsValid(temp->rel))
-       elog(WARN, "%s.%s: sequence does not exist", name, caller);
+       elog(ABORT, "%s.%s: sequence does not exist", name, caller);
 
    RelationSetWIntentLock(temp->rel);
 
    if (temp->rel->rd_rel->relkind != RELKIND_SEQUENCE)
-       elog(WARN, "%s.%s: %s is not sequence !", name, caller, name);
+       elog(ABORT, "%s.%s: %s is not sequence !", name, caller, name);
 
    if (elm != (SeqTable) NULL) /* we opened sequence from our */
    {                           /* SeqTable - check relid ! */
@@ -484,18 +484,18 @@ init_params(CreateSeqStmt *seq, SequenceTupleForm new)
        else if (!strcasecmp(defel->defname, "cycle"))
        {
            if (defel->arg != (Node *) NULL)
-               elog(WARN, "DefineSequence: CYCLE ??");
+               elog(ABORT, "DefineSequence: CYCLE ??");
            new->is_cycled = 't';
        }
        else
-           elog(WARN, "DefineSequence: option \"%s\" not recognized",
+           elog(ABORT, "DefineSequence: option \"%s\" not recognized",
                 defel->defname);
    }
 
    if (increment_by == (DefElem *) NULL)       /* INCREMENT BY */
        new->increment_by = 1;
    else if ((new->increment_by = get_param(increment_by)) == 0)
-       elog(WARN, "DefineSequence: can't INCREMENT by 0");
+       elog(ABORT, "DefineSequence: can't INCREMENT by 0");
 
    if (max_value == (DefElem *) NULL)  /* MAXVALUE */
        if (new->increment_by > 0)
@@ -514,7 +514,7 @@ init_params(CreateSeqStmt *seq, SequenceTupleForm new)
        new->min_value = get_param(min_value);
 
    if (new->min_value >= new->max_value)
-       elog(WARN, "DefineSequence: MINVALUE (%d) can't be >= MAXVALUE (%d)",
+       elog(ABORT, "DefineSequence: MINVALUE (%d) can't be >= MAXVALUE (%d)",
             new->min_value, new->max_value);
 
    if (last_value == (DefElem *) NULL) /* START WITH */
@@ -526,16 +526,16 @@ init_params(CreateSeqStmt *seq, SequenceTupleForm new)
        new->last_value = get_param(last_value);
 
    if (new->last_value < new->min_value)
-       elog(WARN, "DefineSequence: START value (%d) can't be < MINVALUE (%d)",
+       elog(ABORT, "DefineSequence: START value (%d) can't be < MINVALUE (%d)",
             new->last_value, new->min_value);
    if (new->last_value > new->max_value)
-       elog(WARN, "DefineSequence: START value (%d) can't be > MAXVALUE (%d)",
+       elog(ABORT, "DefineSequence: START value (%d) can't be > MAXVALUE (%d)",
             new->last_value, new->max_value);
 
    if (cache_value == (DefElem *) NULL)        /* CACHE */
        new->cache_value = 1;
    else if ((new->cache_value = get_param(cache_value)) <= 0)
-       elog(WARN, "DefineSequence: CACHE (%d) can't be <= 0",
+       elog(ABORT, "DefineSequence: CACHE (%d) can't be <= 0",
             new->cache_value);
 
 }
@@ -545,11 +545,11 @@ static int
 get_param(DefElem *def)
 {
    if (def->arg == (Node *) NULL)
-       elog(WARN, "DefineSequence: \"%s\" value unspecified", def->defname);
+       elog(ABORT, "DefineSequence: \"%s\" value unspecified", def->defname);
 
    if (nodeTag(def->arg) == T_Integer)
        return (intVal(def->arg));
 
-   elog(WARN, "DefineSequence: \"%s\" is to be integer", def->defname);
+   elog(ABORT, "DefineSequence: \"%s\" is to be integer", def->defname);
    return (-1);
 }
index abc7815f918332fd3e7a80e7af5ee132ed80caba..3e48207cf7db4ff49ac3e1a28a8f72abfceaef66 100644 (file)
@@ -68,16 +68,16 @@ CreateTrigger(CreateTrigStmt * stmt)
    int         i;
 
    if (IsSystemRelationName(stmt->relname))
-       elog(WARN, "CreateTrigger: can't create trigger for system relation %s", stmt->relname);
+       elog(ABORT, "CreateTrigger: can't create trigger for system relation %s", stmt->relname);
 
 #ifndef NO_SECURITY
    if (!pg_ownercheck(GetPgUserName(), stmt->relname, RELNAME))
-       elog(WARN, "%s: %s", stmt->relname, aclcheck_error_strings[ACLCHECK_NOT_OWNER]);
+       elog(ABORT, "%s: %s", stmt->relname, aclcheck_error_strings[ACLCHECK_NOT_OWNER]);
 #endif
 
    rel = heap_openr(stmt->relname);
    if (!RelationIsValid(rel))
-       elog(WARN, "CreateTrigger: there is no relation %s", stmt->relname);
+       elog(ABORT, "CreateTrigger: there is no relation %s", stmt->relname);
 
    RelationSetLockForWrite(rel);
 
@@ -87,7 +87,7 @@ CreateTrigger(CreateTrigStmt * stmt)
    if (stmt->row)
        TRIGGER_SETT_ROW(tgtype);
    else
-       elog(WARN, "CreateTrigger: STATEMENT triggers are unimplemented, yet");
+       elog(ABORT, "CreateTrigger: STATEMENT triggers are unimplemented, yet");
 
    for (i = 0; i < 3 && stmt->actions[i]; i++)
    {
@@ -95,21 +95,21 @@ CreateTrigger(CreateTrigStmt * stmt)
        {
            case 'i':
                if (TRIGGER_FOR_INSERT(tgtype))
-                   elog(WARN, "CreateTrigger: double INSERT event specified");
+                   elog(ABORT, "CreateTrigger: double INSERT event specified");
                TRIGGER_SETT_INSERT(tgtype);
                break;
            case 'd':
                if (TRIGGER_FOR_DELETE(tgtype))
-                   elog(WARN, "CreateTrigger: double DELETE event specified");
+                   elog(ABORT, "CreateTrigger: double DELETE event specified");
                TRIGGER_SETT_DELETE(tgtype);
                break;
            case 'u':
                if (TRIGGER_FOR_UPDATE(tgtype))
-                   elog(WARN, "CreateTrigger: double UPDATE event specified");
+                   elog(ABORT, "CreateTrigger: double UPDATE event specified");
                TRIGGER_SETT_UPDATE(tgtype);
                break;
            default:
-               elog(WARN, "CreateTrigger: unknown event specified");
+               elog(ABORT, "CreateTrigger: unknown event specified");
                break;
        }
    }
@@ -125,7 +125,7 @@ CreateTrigger(CreateTrigStmt * stmt)
        Form_pg_trigger pg_trigger = (Form_pg_trigger) GETSTRUCT(tuple);
 
        if (namestrcmp(&(pg_trigger->tgname), stmt->trigname) == 0)
-           elog(WARN, "CreateTrigger: trigger %s already defined on relation %s",
+           elog(ABORT, "CreateTrigger: trigger %s already defined on relation %s",
                 stmt->trigname, stmt->relname);
        else
            found++;
@@ -139,7 +139,7 @@ CreateTrigger(CreateTrigStmt * stmt)
    if (!HeapTupleIsValid(tuple) ||
        ((Form_pg_proc) GETSTRUCT(tuple))->prorettype != 0 ||
        ((Form_pg_proc) GETSTRUCT(tuple))->pronargs != 0)
-       elog(WARN, "CreateTrigger: function %s () does not exist", stmt->funcname);
+       elog(ABORT, "CreateTrigger: function %s () does not exist", stmt->funcname);
 
    if (((Form_pg_proc) GETSTRUCT(tuple))->prolang != ClanguageId)
    {
@@ -150,12 +150,12 @@ CreateTrigger(CreateTrigStmt * stmt)
                                      0, 0, 0);
        if (!HeapTupleIsValid(langTup))
        {
-           elog(WARN, "CreateTrigger: cache lookup for PL failed");
+           elog(ABORT, "CreateTrigger: cache lookup for PL failed");
        }
 
        if (((Form_pg_language) GETSTRUCT(langTup))->lanispl == false)
        {
-           elog(WARN, "CreateTrigger: only C and PL functions are supported");
+           elog(ABORT, "CreateTrigger: only C and PL functions are supported");
        }
    }
 
@@ -227,7 +227,7 @@ CreateTrigger(CreateTrigStmt * stmt)
    if (!PointerIsValid(tuple))
    {
        heap_close(relrdesc);
-       elog(WARN, "CreateTrigger: relation %s not found in pg_class", stmt->relname);
+       elog(ABORT, "CreateTrigger: relation %s not found in pg_class", stmt->relname);
    }
    ((Form_pg_class) GETSTRUCT(tuple))->reltriggers = found + 1;
    RelationInvalidateHeapTuple(relrdesc, tuple);
@@ -266,12 +266,12 @@ DropTrigger(DropTrigStmt * stmt)
 
 #ifndef NO_SECURITY
    if (!pg_ownercheck(GetPgUserName(), stmt->relname, RELNAME))
-       elog(WARN, "%s: %s", stmt->relname, aclcheck_error_strings[ACLCHECK_NOT_OWNER]);
+       elog(ABORT, "%s: %s", stmt->relname, aclcheck_error_strings[ACLCHECK_NOT_OWNER]);
 #endif
 
    rel = heap_openr(stmt->relname);
    if (!RelationIsValid(rel))
-       elog(WARN, "DropTrigger: there is no relation %s", stmt->relname);
+       elog(ABORT, "DropTrigger: there is no relation %s", stmt->relname);
 
    RelationSetLockForWrite(rel);
 
@@ -293,7 +293,7 @@ DropTrigger(DropTrigStmt * stmt)
            found++;
    }
    if (tgfound == 0)
-       elog(WARN, "DropTrigger: there is no trigger %s on relation %s",
+       elog(ABORT, "DropTrigger: there is no trigger %s on relation %s",
             stmt->trigname, stmt->relname);
    if (tgfound > 1)
        elog(NOTICE, "DropTrigger: found (and deleted) %d trigger %s on relation %s",
@@ -308,7 +308,7 @@ DropTrigger(DropTrigStmt * stmt)
    if (!PointerIsValid(tuple))
    {
        heap_close(relrdesc);
-       elog(WARN, "DropTrigger: relation %s not found in pg_class", stmt->relname);
+       elog(ABORT, "DropTrigger: relation %s not found in pg_class", stmt->relname);
    }
    ((Form_pg_class) GETSTRUCT(tuple))->reltriggers = found;
    RelationInvalidateHeapTuple(relrdesc, tuple);
@@ -400,7 +400,7 @@ RelationBuildTriggers(Relation relation)
        if (!HeapTupleIsValid(tuple))
            continue;
        if (found == ntrigs)
-           elog(WARN, "RelationBuildTriggers: unexpected record found for rel %.*s",
+           elog(ABORT, "RelationBuildTriggers: unexpected record found for rel %.*s",
                 NAMEDATALEN, relation->rd_rel->relname.data);
 
        pg_trigger = (Form_pg_trigger) GETSTRUCT(tuple);
@@ -422,7 +422,7 @@ RelationBuildTriggers(Relation relation)
                                             Anum_pg_trigger_tgargs,
                                             tgrel->rd_att, &isnull);
        if (isnull)
-           elog(WARN, "RelationBuildTriggers: tgargs IS NULL for rel %.*s",
+           elog(ABORT, "RelationBuildTriggers: tgargs IS NULL for rel %.*s",
                 NAMEDATALEN, relation->rd_rel->relname.data);
        if (build->tgnargs > 0)
        {
@@ -433,7 +433,7 @@ RelationBuildTriggers(Relation relation)
                                                 Anum_pg_trigger_tgargs,
                                                 tgrel->rd_att, &isnull);
            if (isnull)
-               elog(WARN, "RelationBuildTriggers: tgargs IS NULL for rel %.*s",
+               elog(ABORT, "RelationBuildTriggers: tgargs IS NULL for rel %.*s",
                     NAMEDATALEN, relation->rd_rel->relname.data);
            p = (char *) VARDATA(val);
            build->tgargs = (char **) palloc(build->tgnargs * sizeof(char *));
@@ -452,7 +452,7 @@ RelationBuildTriggers(Relation relation)
    }
 
    if (found < ntrigs)
-       elog(WARN, "RelationBuildTriggers: %d record not found for rel %.*s",
+       elog(ABORT, "RelationBuildTriggers: %d record not found for rel %.*s",
             ntrigs - found,
             NAMEDATALEN, relation->rd_rel->relname.data);
 
@@ -616,7 +616,7 @@ ExecCallTriggerFunc(Trigger * trigger)
                                        0, 0, 0);
        if (!HeapTupleIsValid(procTuple))
        {
-           elog(WARN, "ExecCallTriggerFunc(): Cache lookup for proc %ld failed",
+           elog(ABORT, "ExecCallTriggerFunc(): Cache lookup for proc %ld failed",
                 ObjectIdGetDatum(trigger->tgfoid));
        }
        procStruct = (Form_pg_proc) GETSTRUCT(procTuple);
@@ -626,7 +626,7 @@ ExecCallTriggerFunc(Trigger * trigger)
                                        0, 0, 0);
        if (!HeapTupleIsValid(langTuple))
        {
-           elog(WARN, "ExecCallTriggerFunc(): Cache lookup for language %ld failed",
+           elog(ABORT, "ExecCallTriggerFunc(): Cache lookup for language %ld failed",
                 ObjectIdGetDatum(procStruct->prolang));
        }
        langStruct = (Form_pg_language) GETSTRUCT(langTuple);
@@ -840,7 +840,7 @@ GetTupleForTrigger(Relation relation, ItemPointer tid, bool before)
    b = ReadBuffer(relation, ItemPointerGetBlockNumber(tid));
 
    if (!BufferIsValid(b))
-       elog(WARN, "GetTupleForTrigger: failed ReadBuffer");
+       elog(ABORT, "GetTupleForTrigger: failed ReadBuffer");
 
    dp = (PageHeader) BufferGetPage(b);
    lp = PageGetItemId(dp, ItemPointerGetOffsetNumber(tid));
@@ -863,7 +863,7 @@ GetTupleForTrigger(Relation relation, ItemPointer tid, bool before)
        if (!tuple)
        {
            ReleaseBuffer(b);
-           elog(WARN, "GetTupleForTrigger: (am)invalid tid");
+           elog(ABORT, "GetTupleForTrigger: (am)invalid tid");
        }
    }
 
index 0cb18e2b0185dc9a2982b3579511808313403a12..6559ea732b25ad7f01eaeb42cd0630b177e408c7 100644 (file)
@@ -102,7 +102,7 @@ void DefineUser(CreateUserStmt *stmt) {
   pg_user = GetPgUserName();
   if (pg_aclcheck(UserRelationName, pg_user, ACL_RD | ACL_WR | ACL_AP) != ACLCHECK_OK) {
     UserAbortTransactionBlock();
-    elog(WARN, "defineUser: user \"%s\" does not have SELECT and INSERT privilege for \"%s\"",
+    elog(ABORT, "defineUser: user \"%s\" does not have SELECT and INSERT privilege for \"%s\"",
                pg_user, UserRelationName);
     return;
   }
@@ -135,7 +135,7 @@ void DefineUser(CreateUserStmt *stmt) {
     RelationUnsetLockForWrite(pg_user_rel);
     heap_close(pg_user_rel);
     UserAbortTransactionBlock();
-    elog(WARN, "defineUser: user \"%s\" has already been created", stmt->user);
+    elog(ABORT, "defineUser: user \"%s\" has already been created", stmt->user);
     return;
   }
 
@@ -213,7 +213,7 @@ extern void AlterUser(AlterUserStmt *stmt) {
   pg_user = GetPgUserName();
   if (pg_aclcheck(UserRelationName, pg_user, ACL_RD | ACL_WR) != ACLCHECK_OK) {
     UserAbortTransactionBlock();
-    elog(WARN, "alterUser: user \"%s\" does not have SELECT and UPDATE privilege for \"%s\"",
+    elog(ABORT, "alterUser: user \"%s\" does not have SELECT and UPDATE privilege for \"%s\"",
                pg_user, UserRelationName);
     return;
   }
@@ -243,7 +243,7 @@ extern void AlterUser(AlterUserStmt *stmt) {
     RelationUnsetLockForWrite(pg_user_rel);
     heap_close(pg_user_rel);
     UserAbortTransactionBlock();
-    elog(WARN, "alterUser: user \"%s\" does not exist", stmt->user);
+    elog(ABORT, "alterUser: user \"%s\" does not exist", stmt->user);
     return;
   }
 
@@ -323,7 +323,7 @@ extern void RemoveUser(char* user) {
   pg_user = GetPgUserName();
   if (pg_aclcheck(UserRelationName, pg_user, ACL_RD | ACL_WR) != ACLCHECK_OK) {
     UserAbortTransactionBlock();
-    elog(WARN, "removeUser: user \"%s\" does not have SELECT and DELETE privilege for \"%s\"",
+    elog(ABORT, "removeUser: user \"%s\" does not have SELECT and DELETE privilege for \"%s\"",
                pg_user, UserRelationName);
     return;
   }
@@ -355,7 +355,7 @@ extern void RemoveUser(char* user) {
     RelationUnsetLockForWrite(pg_user_rel);
     heap_close(pg_user_rel);
     UserAbortTransactionBlock();
-    elog(WARN, "removeUser: user \"%s\" does not exist", user);
+    elog(ABORT, "removeUser: user \"%s\" does not exist", user);
     return;
   }
 
index 167aa0d4d62bf0f38cfd0a98531aae6286a4dc73..d2a29a26a1f1960cc55d9605897813b9a0914fba 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.55 1997/12/19 02:05:33 scrappy Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.56 1998/01/05 03:30:57 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -185,7 +185,7 @@ vc_init()
    int         fd;
 
    if ((fd = open("pg_vlock", O_CREAT | O_EXCL, 0600)) < 0)
-       elog(WARN, "can't create lock file -- another vacuum cleaner running?");
+       elog(ABORT, "can't create lock file -- another vacuum cleaner running?");
 
    close(fd);
 
@@ -207,7 +207,7 @@ vc_shutdown()
 {
    /* on entry, not in a transaction */
    if (unlink("pg_vlock") < 0)
-       elog(WARN, "vacuum: can't destroy lock file!");
+       elog(ABORT, "vacuum: can't destroy lock file!");
 
    /* okay, we're done */
    VacuumRunning = false;
@@ -438,7 +438,7 @@ vc_vacone(Oid relid, bool analyze, List *va_cols)
            List       *le;
 
            if (length(va_cols) > attr_cnt)
-               elog(WARN, "vacuum: too many attributes specified for relation %s",
+               elog(ABORT, "vacuum: too many attributes specified for relation %s",
                     (RelationGetRelationName(onerel))->data);
            attnums = (int *) palloc(attr_cnt * sizeof(int));
            foreach(le, va_cols)
@@ -454,7 +454,7 @@ vc_vacone(Oid relid, bool analyze, List *va_cols)
                    attnums[tcnt++] = i;
                else
                {
-                   elog(WARN, "vacuum: there is no attribute %s in %s",
+                   elog(ABORT, "vacuum: there is no attribute %s in %s",
                         col, (RelationGetRelationName(onerel))->data);
                }
            }
@@ -1139,7 +1139,7 @@ vc_rpfheap(VRelStats *vacrelstats, Relation onerel,
                                 InvalidOffsetNumber, LP_USED);
            if (newoff == InvalidOffsetNumber)
            {
-               elog(WARN, "\
+               elog(ABORT, "\
 failed to add item with len = %u to page %u (free space %u, nusd %u, noff %u)",
                     tlen, ToVpd->vpd_blkno, ToVpd->vpd_free,
                     ToVpd->vpd_nusd, ToVpd->vpd_noff);
@@ -1789,7 +1789,7 @@ vc_updstats(Oid relid, int npages, int ntups, bool hasindex, VRelStats *vacrelst
    rsdesc = heap_beginscan(rd, false, false, 1, &rskey);
 
    if (!HeapTupleIsValid(rtup = heap_getnext(rsdesc, 0, &rbuf)))
-       elog(WARN, "pg_class entry for relid %d vanished during vacuuming",
+       elog(ABORT, "pg_class entry for relid %d vanished during vacuuming",
             relid);
 
    /* overwrite the existing statistics in the tuple */
index 140378d17d9fb5d2a6335c77ca99ab72ce7ccd29..c7431aaf670bb84bd0462427481c613b5c27b930 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.17 1997/11/28 17:27:13 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.18 1998/01/05 03:30:59 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -89,7 +89,7 @@ DefineVirtualRelation(char *relname, List *tlist)
    }
    else
    {
-       elog(WARN, "attempted to define virtual relation with no attrs");
+       elog(ABORT, "attempted to define virtual relation with no attrs");
    }
 
    /*
index 15adc2071580897f839c5a1912407cefc029f657..1eefd2f43e5f6c3677d33fd3883831c6a2560579 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/executor/execAmi.c,v 1.12 1997/11/28 04:40:03 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/executor/execAmi.c,v 1.13 1998/01/05 03:31:01 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -313,7 +313,7 @@ ExecReScan(Plan *node, ExprContext *exprCtxt, Plan *parent)
            break;
 
        default:
-           elog(WARN, "ExecReScan: not a seqscan or indexscan node.");
+           elog(ABORT, "ExecReScan: not a seqscan or indexscan node.");
            return;
    }
 }
index 64876ff9ab3cddb0d9d2513736784e56e97f1237..646bed9ea624220dbdef19bbcdd20562e14bbfb5 100644 (file)
@@ -26,7 +26,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.35 1997/11/28 17:27:20 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.36 1998/01/05 03:31:06 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -328,7 +328,7 @@ ExecCheckPerms(CmdType operation,
                                  ObjectIdGetDatum(relid),
                                  0, 0, 0);
        if (!HeapTupleIsValid(htp))
-           elog(WARN, "ExecCheckPerms: bogus RT relid: %d",
+           elog(ABORT, "ExecCheckPerms: bogus RT relid: %d",
                 relid);
        StrNCpy(rname.data,
                ((Form_pg_class) GETSTRUCT(htp))->relname.data,
@@ -361,7 +361,7 @@ ExecCheckPerms(CmdType operation,
                    opstr = "write";
                    break;
                default:
-                   elog(WARN, "ExecCheckPerms: bogus operation %d",
+                   elog(ABORT, "ExecCheckPerms: bogus operation %d",
                         operation);
            }
        }
@@ -377,7 +377,7 @@ ExecCheckPerms(CmdType operation,
    }
    if (!ok)
    {
-       elog(WARN, "%s: %s", rname.data, aclcheck_error_strings[aclcheck_result]);
+       elog(ABORT, "%s: %s", rname.data, aclcheck_error_strings[aclcheck_result]);
    }
 }
 
@@ -447,7 +447,7 @@ InitPlan(CmdType operation, Query *parseTree, Plan *plan, EState *estate)
        resultRelationDesc = heap_open(resultRelationOid);
 
        if (resultRelationDesc->rd_rel->relkind == RELKIND_SEQUENCE)
-           elog(WARN, "You can't change sequence relation %s",
+           elog(ABORT, "You can't change sequence relation %s",
                 resultRelationDesc->rd_rel->relname.data);
 
        /*
@@ -778,10 +778,10 @@ ExecutePlan(EState *estate,
                                          "ctid",
                                          &datum,
                                          &isNull))
-                   elog(WARN, "ExecutePlan: NO (junk) `ctid' was found!");
+                   elog(ABORT, "ExecutePlan: NO (junk) `ctid' was found!");
 
                if (isNull)
-                   elog(WARN, "ExecutePlan: (junk) `ctid' is NULL!");
+                   elog(ABORT, "ExecutePlan: (junk) `ctid' is NULL!");
 
                tupleid = (ItemPointer) DatumGetPointer(datum);
                tuple_ctid = *tupleid;  /* make sure we don't free the
@@ -1376,7 +1376,7 @@ ExecConstraints(char *caller, Relation rel, HeapTuple tuple)
        for (attrChk = 1; attrChk <= rel->rd_att->natts; attrChk++)
        {
            if (rel->rd_att->attrs[attrChk - 1]->attnotnull && heap_attisnull(tuple, attrChk))
-               elog(WARN, "%s: Fail to add null value in not null attribute %s",
+               elog(ABORT, "%s: Fail to add null value in not null attribute %s",
                  caller, rel->rd_att->attrs[attrChk - 1]->attname.data);
        }
    }
@@ -1386,7 +1386,7 @@ ExecConstraints(char *caller, Relation rel, HeapTuple tuple)
        char       *failed;
 
        if ((failed = ExecRelCheck(rel, tuple)) != NULL)
-           elog(WARN, "%s: rejected due to CHECK constraint %s", caller, failed);
+           elog(ABORT, "%s: rejected due to CHECK constraint %s", caller, failed);
    }
 
    return (newtuple);
index 8671e8e1b073e7b47214b21d910b4c3f2e076454..38c159534e95e6e33766d57407154fbfb3c02c7c 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/executor/execProcnode.c,v 1.5 1997/09/08 21:42:59 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/executor/execProcnode.c,v 1.6 1998/01/05 03:31:08 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -368,7 +368,7 @@ ExecCountSlotsNode(Plan *node)
            return ExecCountSlotsTee((Tee *) node);
 
        default:
-           elog(WARN, "ExecCountSlotsNode: node not yet supported: %d",
+           elog(ABORT, "ExecCountSlotsNode: node not yet supported: %d",
                 nodeTag(node));
            break;
    }
index b4340fe60d7506883810b29ee1f26de3390b1923..99f460a785c77c8ca25b05debbbd0524a193e4f3 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.20 1997/11/26 03:54:00 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.21 1998/01/05 03:31:11 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -148,7 +148,7 @@ ExecEvalArrayRef(ArrayRef *arrayRef,
                return (Datum) NULL;
        }
        if (i != j)
-           elog(WARN,
+           elog(ABORT,
                 "ExecEvalArrayRef: upper and lower indices mismatch");
        lIndex = lower.indx;
    }
@@ -429,7 +429,7 @@ ExecEvalParam(Param *expression, ExprContext *econtext, bool *isNull)
                         */
                        if (strcmp(paramList->name, thisParameterName) != 0)
                        {
-                           elog(WARN,
+                           elog(ABORT,
                                 "ExecEvalParam: new/old params with same id & diff names");
                        }
                    }
@@ -439,7 +439,7 @@ ExecEvalParam(Param *expression, ExprContext *econtext, bool *isNull)
                    /*
                     * oops! this is not supposed to happen!
                     */
-                   elog(WARN, "ExecEvalParam: invalid paramkind %d",
+                   elog(ABORT, "ExecEvalParam: invalid paramkind %d",
                         thisParameterKind);
            }
            if (!matchFound)
@@ -456,7 +456,7 @@ ExecEvalParam(Param *expression, ExprContext *econtext, bool *isNull)
         * ooops! we couldn't find this parameter in the parameter list.
         * Signal an error
         */
-       elog(WARN, "ExecEvalParam: Unknown value for parameter %s",
+       elog(ABORT, "ExecEvalParam: Unknown value for parameter %s",
             thisParameterName);
    }
 
@@ -510,13 +510,13 @@ GetAttributeByNum(TupleTableSlot *slot,
    Datum       retval;
 
    if (!AttributeNumberIsValid(attrno))
-       elog(WARN, "GetAttributeByNum: Invalid attribute number");
+       elog(ABORT, "GetAttributeByNum: Invalid attribute number");
 
    if (!AttrNumberIsForUserDefinedAttr(attrno))
-       elog(WARN, "GetAttributeByNum: cannot access system attributes here");
+       elog(ABORT, "GetAttributeByNum: cannot access system attributes here");
 
    if (isNull == (bool *) NULL)
-       elog(WARN, "GetAttributeByNum: a NULL isNull flag was passed");
+       elog(ABORT, "GetAttributeByNum: a NULL isNull flag was passed");
 
    if (TupIsNull(slot))
    {
@@ -557,10 +557,10 @@ GetAttributeByName(TupleTableSlot *slot, char *attname, bool *isNull)
    int         i;
 
    if (attname == NULL)
-       elog(WARN, "GetAttributeByName: Invalid attribute name");
+       elog(ABORT, "GetAttributeByName: Invalid attribute name");
 
    if (isNull == (bool *) NULL)
-       elog(WARN, "GetAttributeByName: a NULL isNull flag was passed");
+       elog(ABORT, "GetAttributeByName: a NULL isNull flag was passed");
 
    if (TupIsNull(slot))
    {
@@ -584,7 +584,7 @@ GetAttributeByName(TupleTableSlot *slot, char *attname, bool *isNull)
    }
 
    if (attrno == InvalidAttrNumber)
-       elog(WARN, "GetAttributeByName: attribute %s not found", attname);
+       elog(ABORT, "GetAttributeByName: attribute %s not found", attname);
 
    retval = heap_getattr(slot->val,
                          slot->ttc_buffer,
@@ -696,7 +696,7 @@ ExecMakeFunctionResult(Node *node,
        bool        argDone;
 
        if (fcache->nargs > MAXFMGRARGS)
-           elog(WARN, "ExecMakeFunctionResult: too many arguments");
+           elog(ABORT, "ExecMakeFunctionResult: too many arguments");
 
        /*
         * If the setArg in the fcache is set we have an argument
@@ -1232,13 +1232,13 @@ ExecEvalExpr(Node *expression,
                        retDatum = (Datum) ExecEvalNot(expr, econtext, isNull);
                        break;
                    default:
-                       elog(WARN, "ExecEvalExpr: unknown expression type");
+                       elog(ABORT, "ExecEvalExpr: unknown expression type");
                        break;
                }
                break;
            }
        default:
-           elog(WARN, "ExecEvalExpr: unknown expression type");
+           elog(ABORT, "ExecEvalExpr: unknown expression type");
            break;
    }
 
index 8c9635ea438a6cad73b58667b3e86838d7865070..40be0b3d5de6f8f60fcf55cff79d7d40b5628d70 100644 (file)
@@ -14,7 +14,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.13 1997/12/18 12:53:42 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.14 1998/01/05 03:31:12 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -315,7 +315,7 @@ ExecAllocTableSlot(TupleTable table)
         * table->size =  newsize;
         */
        elog(NOTICE, "Plan requires more slots than are available");
-       elog(WARN, "send mail to your local executor guru to fix this");
+       elog(ABORT, "send mail to your local executor guru to fix this");
    }
 
    /* ----------------
@@ -859,7 +859,7 @@ NodeGetResultTupleSlot(Plan *node)
             *    should never get here
             * ----------------
             */
-           elog(WARN, "NodeGetResultTupleSlot: node not yet supported: %d ",
+           elog(ABORT, "NodeGetResultTupleSlot: node not yet supported: %d ",
                 nodeTag(node));
 
            return NULL;
index 653c4ed48f56993d19de3aa086774dcb42d39782..cecd28977818e682c9eae1129778eba29a6f7b77 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.21 1997/11/20 23:21:26 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.22 1998/01/05 03:31:13 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -499,7 +499,7 @@ ExecSetTypeInfo(int index,
     */
    att = typeInfo[index];
    if (att == NULL)
-       elog(WARN, "ExecSetTypeInfo: trying to assign through NULL");
+       elog(ABORT, "ExecSetTypeInfo: trying to assign through NULL");
 
    /* ----------------
     *  assign values to the tuple descriptor, being careful not
@@ -1219,7 +1219,7 @@ setVarAttrLenForCreateTable(TupleDesc tupType, List *targetList,
                heap_close(rd);
            }
            else
-               elog(WARN, "setVarAttrLenForCreateTable: can't get length for variable-length field");
+               elog(ABORT, "setVarAttrLenForCreateTable: can't get length for variable-length field");
        }
        tl = lnext(tl);
    }
index 2037994027a800290e84284df5c65d5afaa39861..eb9a4b6bebce5a7e66f8c5be7a291e1cb081ded4 100644 (file)
@@ -170,7 +170,7 @@ ExecAgg(Agg *node)
                                       ObjectIdGetDatum(agg->basetype),
                                       0, 0);
        if (!HeapTupleIsValid(aggTuple))
-           elog(WARN, "ExecAgg: cache lookup failed for aggregate \"%s\"(%s)",
+           elog(ABORT, "ExecAgg: cache lookup failed for aggregate \"%s\"(%s)",
                 aggname,
                 typeidTypeName(agg->basetype));
        aggp = (Form_pg_aggregate) GETSTRUCT(aggTuple);
@@ -204,7 +204,7 @@ ExecAgg(Agg *node)
             * ------------------------------------------
             */
            if (isNull2)
-               elog(WARN, "ExecAgg: agginitval2 is null");
+               elog(ABORT, "ExecAgg: agginitval2 is null");
        }
 
        if (OidIsValid(xfn1_oid))
@@ -305,7 +305,7 @@ ExecAgg(Agg *node)
                                          &isNull, &isDone);
                    break;
                default:
-                   elog(WARN, "ExecAgg: Bad Agg->Target for Agg %d", i);
+                   elog(ABORT, "ExecAgg: Bad Agg->Target for Agg %d", i);
            }
 
            if (isNull && !aggregates[i]->usenulls)
@@ -355,7 +355,7 @@ ExecAgg(Agg *node)
 
                            break;
                        default:
-                           elog(WARN, "ExecAgg: Bad Agg->Target for Agg %d", i);
+                           elog(ABORT, "ExecAgg: Bad Agg->Target for Agg %d", i);
                    }
                    if (attlen == -1)
                    {
@@ -443,7 +443,7 @@ ExecAgg(Agg *node)
                args[0] = (char *) value2[i];
            }
            else
-               elog(WARN, "ExecAgg: no valid transition functions??");
+               elog(ABORT, "ExecAgg: no valid transition functions??");
            value1[i] =
                (Datum) fmgr_c(aggfns->finalfn, aggfns->finalfn_oid,
                               aggfns->finalfn_nargs, (FmgrValues *) args,
@@ -462,7 +462,7 @@ ExecAgg(Agg *node)
            value1[i] = value2[i];
        }
        else
-           elog(WARN, "ExecAgg: no valid transition functions??");
+           elog(ABORT, "ExecAgg: no valid transition functions??");
    }
 
    /*
index fbc7340700dd7543f1289f593920ec5490254261..0d06ac5ac97beae4974d46de295ab33687170f95 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.13 1997/09/08 21:43:11 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.14 1998/01/05 03:31:16 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -90,7 +90,7 @@ ExecHash(Hash *node)
 
    hashtable = node->hashtable;
    if (hashtable == NULL)
-       elog(WARN, "ExecHash: hash table is NULL.");
+       elog(ABORT, "ExecHash: hash table is NULL.");
 
    nbatch = hashtable->nbatch;
 
@@ -359,7 +359,7 @@ ExecHashTableCreate(Hash *node)
 
    if (hashtable == NULL)
    {
-       elog(WARN, "not enough memory for hashjoin.");
+       elog(ABORT, "not enough memory for hashjoin.");
    }
    /* ----------------
     *  initialize the hash table header
@@ -635,7 +635,7 @@ ExecHashOverflowInsert(HashJoinTable hashtable,
        if (hashtable == NULL)
        {
            perror("repalloc");
-           elog(WARN, "can't expand hashtable.");
+           elog(ABORT, "can't expand hashtable.");
        }
 #else
        /* ------------------
@@ -644,7 +644,7 @@ ExecHashOverflowInsert(HashJoinTable hashtable,
         *  - Chris Dunlop, 
         * ------------------
         */
-       elog(WARN, "hash table out of memory. Use -B parameter to increase buffers.");
+       elog(ABORT, "hash table out of memory. Use -B parameter to increase buffers.");
 #endif
 
    }
index ad6920a09bff16e974d9814f9ddab09d6711987a..507117bd9abf152031b4effd8983df0ed409f8e1 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.11 1997/11/20 23:21:28 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.12 1998/01/05 03:31:18 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -641,7 +641,7 @@ ExecInitIndexScan(IndexScan *node, EState *estate, Plan *parent)
 
            op = (Oper *) clause->oper;
            if (!IsA(op, Oper))
-               elog(WARN, "ExecInitIndexScan: op not an Oper!");
+               elog(ABORT, "ExecInitIndexScan: op not an Oper!");
 
            opid = op->opid;
 
@@ -757,7 +757,7 @@ ExecInitIndexScan(IndexScan *node, EState *estate, Plan *parent)
                 * ----------------
                 */
                if (scanvar == LEFT_OP)
-                   elog(WARN, "ExecInitIndexScan: %s",
+                   elog(ABORT, "ExecInitIndexScan: %s",
                         "both left and right op's are rel-vars");
 
                /* ----------------
@@ -810,7 +810,7 @@ ExecInitIndexScan(IndexScan *node, EState *estate, Plan *parent)
                 * ----------------
                 */
                if (scanvar == LEFT_OP)
-                   elog(WARN, "ExecInitIndexScan: %s",
+                   elog(ABORT, "ExecInitIndexScan: %s",
                         "both left and right ops are rel-vars");
 
                varattno = 1;
@@ -836,7 +836,7 @@ ExecInitIndexScan(IndexScan *node, EState *estate, Plan *parent)
             * ----------------
             */
            if (scanvar == NO_OP)
-               elog(WARN, "ExecInitIndexScan: %s",
+               elog(ABORT, "ExecInitIndexScan: %s",
                     "neither leftop nor rightop refer to scan relation");
 
            /* ----------------
index 3dd8f4d70fbc056c603fd35a5633e2d979c546f0..0c0f265ea11a031a31cca847f6fab3c1ca17b17a 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.10 1997/09/15 14:27:37 vadim Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.11 1998/01/05 03:31:20 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -56,7 +56,7 @@ FormSortKeys(Sort *sortnode)
     * ----------------
     */
    if (keycount <= 0)
-       elog(WARN, "FormSortKeys: keycount <= 0");
+       elog(ABORT, "FormSortKeys: keycount <= 0");
    sortkeys = (ScanKey) palloc(keycount * sizeof(ScanKeyData));
 
    /* ----------------
index dc46e949662df37be1ed8c7f42ec80fc6edb1bd3..719d8eaed1a081c04ae5eda9057df392b07fe779 100644 (file)
@@ -15,7 +15,7 @@
  *     ExecEndTee
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/executor/Attic/nodeTee.c,v 1.13 1997/11/28 17:27:31 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/executor/Attic/nodeTee.c,v 1.14 1998/01/05 03:31:21 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -329,7 +329,7 @@ ExecTee(Tee *node, Plan *parent)
    }
    else
    {
-       elog(WARN, "A Tee node can only be executed from its left or right parent\n");
+       elog(ABORT, "A Tee node can only be executed from its left or right parent\n");
        return NULL;
    }
 
index 639af1854f0927e078e3132826540b179c45adf9..5a241953da3a8159e14c1a7f807bbce6559b81d9 100644 (file)
@@ -9,7 +9,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/lib/stringinfo.c,v 1.5 1997/09/08 02:23:05 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/lib/stringinfo.c,v 1.6 1998/01/05 03:31:24 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -36,14 +36,14 @@ makeStringInfo()
    res = (StringInfo) palloc(sizeof(StringInfoData));
    if (res == NULL)
    {
-       elog(WARN, "makeStringInfo: Out of memory!");
+       elog(ABORT, "makeStringInfo: Out of memory!");
    }
 
    size = 100;
    res->data = palloc(size);
    if (res->data == NULL)
    {
-       elog(WARN,
+       elog(ABORT,
           "makeStringInfo: Out of memory! (%ld bytes requested)", size);
    }
    res->maxlen = size;
@@ -103,7 +103,7 @@ appendStringInfo(StringInfo str, char *buffer)
        s = palloc(newlen);
        if (s == NULL)
        {
-           elog(WARN,
+           elog(ABORT,
                 "appendStringInfo: Out of memory (%d bytes requested)",
                 newlen);
        }
index 0445779bcc9a5adcb04500c1533e9fbe2923bcf7..4482e338c42adcc932d5829cb266de06d6ff6512 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.17 1997/12/08 04:42:45 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.18 1998/01/05 03:31:26 momjian Exp $
  *
  * NOTES
  *   This should be moved to a more appropriate place.  It is here
@@ -100,12 +100,12 @@ lo_close(int fd)
 
    if (fd >= MAX_LOBJ_FDS)
    {
-       elog(WARN, "lo_close: large obj descriptor (%d) out of range", fd);
+       elog(ABORT, "lo_close: large obj descriptor (%d) out of range", fd);
        return -2;
    }
    if (cookies[fd] == NULL)
    {
-       elog(WARN, "lo_close: invalid large obj descriptor (%d)", fd);
+       elog(ABORT, "lo_close: invalid large obj descriptor (%d)", fd);
        return -3;
    }
 #if FSDB
@@ -150,7 +150,7 @@ lo_lseek(int fd, int offset, int whence)
 
    if (fd >= MAX_LOBJ_FDS)
    {
-       elog(WARN, "lo_seek: large obj descriptor (%d) out of range", fd);
+       elog(ABORT, "lo_seek: large obj descriptor (%d) out of range", fd);
        return -2;
    }
 
@@ -200,12 +200,12 @@ lo_tell(int fd)
 {
    if (fd >= MAX_LOBJ_FDS)
    {
-       elog(WARN, "lo_tell: large object descriptor (%d) out of range", fd);
+       elog(ABORT, "lo_tell: large object descriptor (%d) out of range", fd);
        return -2;
    }
    if (cookies[fd] == NULL)
    {
-       elog(WARN, "lo_tell: invalid large object descriptor (%d)", fd);
+       elog(ABORT, "lo_tell: invalid large object descriptor (%d)", fd);
        return -3;
    }
    return inv_tell(cookies[fd]);
@@ -273,7 +273,7 @@ lo_import(text *filename)
    fd = open(fnamebuf, O_RDONLY, 0666);
    if (fd < 0)
    {                           /* error */
-       elog(WARN, "be_lo_import: can't open unix file\"%s\"\n",
+       elog(ABORT, "be_lo_import: can't open unix file\"%s\"\n",
             fnamebuf);
    }
 
@@ -283,7 +283,7 @@ lo_import(text *filename)
    lobj = inv_create(INV_READ | INV_WRITE);
    if (lobj == NULL)
    {
-       elog(WARN, "lo_import: can't create inv object for \"%s\"",
+       elog(ABORT, "lo_import: can't create inv object for \"%s\"",
             fnamebuf);
    }
 
@@ -301,7 +301,7 @@ lo_import(text *filename)
        tmp = inv_write(lobj, buf, nbytes);
        if (tmp < nbytes)
        {
-           elog(WARN, "lo_import: error while reading \"%s\"",
+           elog(ABORT, "lo_import: error while reading \"%s\"",
                 fnamebuf);
        }
    }
@@ -335,7 +335,7 @@ lo_export(Oid lobjId, text *filename)
    lobj = inv_open(lobjId, INV_READ);
    if (lobj == NULL)
    {
-       elog(WARN, "lo_export: can't open inv object %d",
+       elog(ABORT, "lo_export: can't open inv object %d",
             lobjId);
    }
 
@@ -348,7 +348,7 @@ lo_export(Oid lobjId, text *filename)
    umask(oumask);
    if (fd < 0)
    {                           /* error */
-       elog(WARN, "lo_export: can't open unix file\"%s\"",
+       elog(ABORT, "lo_export: can't open unix file\"%s\"",
             fnamebuf);
    }
 
@@ -360,7 +360,7 @@ lo_export(Oid lobjId, text *filename)
        tmp = write(fd, buf, nbytes);
        if (tmp < nbytes)
        {
-           elog(WARN, "lo_export: error while writing \"%s\"",
+           elog(ABORT, "lo_export: error while writing \"%s\"",
                 fnamebuf);
        }
    }
index d895f7a031db7a8d62104d14a0f96033b8ee46c6..8c19444db79a23327cdfdecac37087bdf2055137 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.11 1997/12/12 16:26:14 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.12 1998/01/05 03:31:28 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -82,7 +82,7 @@ PQfn(int fnid,
        }
        else if (args[i].len > sizeof(int4))
        {
-           elog(WARN, "arg_length of argument %d too long", i);
+           elog(ABORT, "arg_length of argument %d too long", i);
        }
        else
        {
@@ -125,7 +125,7 @@ PQfn(int fnid,
  *     If a query is does not return tuples, return "C query-command".
  *     If there is an error: return "E error-message".
  *
- *     Note: if we get a serious error or an elog(WARN), then PQexec never
+ *     Note: if we get a serious error or an elog(ABORT), then PQexec never
  *     returns because the system longjmp's back to the main loop.
  * ----------------
  */
@@ -211,7 +211,7 @@ pqtest_PQexec(char *q)
        case 'P':
            a = PQparray(&res[1]);
            if (a == NULL)
-               elog(WARN, "pqtest_PQexec: PQparray could not find portal %s",
+               elog(ABORT, "pqtest_PQexec: PQparray could not find portal %s",
                     res);
 
            t = PQntuples(a);
index ead2e900dc030ced6559d501fe0e5614e99ebd53..972910b0e9d7a97b484dd8e61544f99ebfb34708 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.31 1997/12/16 15:58:14 thomas Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.32 1998/01/05 03:31:30 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -694,7 +694,7 @@ StreamConnection(int server_fd, Port *port)
                             (struct sockaddr *) & port->raddr,
                             &addrlen)) < 0)
    {
-       elog(WARN, "postmaster: StreamConnection: accept: %m");
+       elog(ABORT, "postmaster: StreamConnection: accept: %m");
        return (STATUS_ERROR);
    }
 
@@ -703,7 +703,7 @@ StreamConnection(int server_fd, Port *port)
    if (getsockname(port->sock, (struct sockaddr *) & port->laddr,
                    &addrlen) < 0)
    {
-       elog(WARN, "postmaster: StreamConnection: getsockname: %m");
+       elog(ABORT, "postmaster: StreamConnection: getsockname: %m");
        return (STATUS_ERROR);
    }
    if (family == AF_INET)
@@ -714,13 +714,13 @@ StreamConnection(int server_fd, Port *port)
        pe = getprotobyname("TCP");
        if (pe == NULL)
        {
-           elog(WARN, "postmaster: getprotobyname failed");
+           elog(ABORT, "postmaster: getprotobyname failed");
            return (STATUS_ERROR);
        }
        if (setsockopt(port->sock, pe->p_proto, TCP_NODELAY,
                       &on, sizeof(on)) < 0)
        {
-           elog(WARN, "postmaster: setsockopt failed");
+           elog(ABORT, "postmaster: setsockopt failed");
            return (STATUS_ERROR);
        }
    }
index c5728dddd1cc0fc734d44a7efcc34ab16316b30d..9bb548d8da520cbd28500023565b6c36daf43023 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.10 1997/09/08 21:44:02 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.11 1998/01/05 03:31:34 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -243,7 +243,7 @@ _equalParam(Param *a, Param *b)
            return (true);
            break;
        default:
-           elog(WARN, "_equalParam: Invalid paramkind value: %d",
+           elog(ABORT, "_equalParam: Invalid paramkind value: %d",
                 a->paramkind);
    }
 
index 2413839dc6b2b9bf5f8cadf34367202530f2d699..28e9bc5f594b041c8dc8d26d6c0fc493cd5e5b5e 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/nodes/list.c,v 1.8 1997/12/19 16:54:15 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/nodes/list.c,v 1.9 1998/01/05 03:31:38 momjian Exp $
  *
  * NOTES
  *   XXX a few of the following functions are duplicated to handle
@@ -237,7 +237,7 @@ nconc(List *l1, List *l2)
    if (l2 == NIL)
        return l1;
    if (l1 == l2)
-       elog(WARN, "tryout to nconc a list to itself");
+       elog(ABORT, "tryout to nconc a list to itself");
 
    for (temp = l1; lnext(temp) != NULL; temp = lnext(temp))
        ;
index 60b45822eb617978f771e82f09c21f69f2a224bd..28f3f20847256a210665f591ad91db278ab4e0e0 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.5 1997/09/08 02:23:43 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.6 1998/01/05 03:31:40 momjian Exp $
  *
  * HISTORY
  *   AUTHOR            DATE            MAJOR EVENT
@@ -275,7 +275,7 @@ nodeRead(bool read_car_only)
            make_dotted_pair_cell = true;
            break;
        default:
-           elog(WARN, "nodeRead: Bad type %d", type);
+           elog(ABORT, "nodeRead: Bad type %d", type);
            break;
    }
    if (make_dotted_pair_cell)
index 8f1e6ff2655717da9c0c6bd948928687249269c5..7ac0e725e787a1aa1e07f2bf0e4f9ac767242c06 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.12 1997/12/27 06:40:59 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.13 1998/01/05 03:31:45 momjian Exp $
  *
  * NOTES
  *   Most of the read functions for plan nodes are tested. (In fact, they
@@ -2034,7 +2034,7 @@ parsePlanString(void)
    }
    else
    {
-       elog(WARN, "badly formatted planstring \"%.10s\"...\n", token);
+       elog(ABORT, "badly formatted planstring \"%.10s\"...\n", token);
    }
 
    return ((Node *) return_value);
@@ -2073,7 +2073,7 @@ readDatum(Oid type)
    {
        if (length > sizeof(Datum))
        {
-           elog(WARN, "readValue: byval & length = %d", length);
+           elog(ABORT, "readValue: byval & length = %d", length);
        }
        s = (char *) (&res);
        for (i = 0; i < sizeof(Datum); i++)
@@ -2101,7 +2101,7 @@ readDatum(Oid type)
    token = lsptok(NULL, &tokenLength); /* skip the ']' */
    if (token[0] != ']')
    {
-       elog(WARN, "readValue: ']' expected, length =%d", length);
+       elog(ABORT, "readValue: ']' expected, length =%d", length);
    }
 
    return (res);
index 8dbc935c8724c188a6d989c6711adfc48c5fb9d4..584a6b87c24473514c5a740be24090a351ff26b8 100644 (file)
@@ -3,7 +3,7 @@
 * geqo_erx.c--
 *   edge recombination crossover [ER]
 *
-* $Id: geqo_erx.c,v 1.5 1997/09/08 21:44:16 momjian Exp $
+* $Id: geqo_erx.c,v 1.6 1998/01/05 03:31:48 momjian Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -353,7 +353,7 @@ gimme_gene(Edge edge, Edge *edge_table)
            minimum_count = 1;
        }
        else if (minimum_count == -1)
-           elog(WARN, "gimme_gene: Internal error - minimum_count not set");
+           elog(ABORT, "gimme_gene: Internal error - minimum_count not set");
        else if (edge_table[(int) friend].unused_edges == minimum_edges)
            minimum_count++;
 
@@ -379,7 +379,7 @@ gimme_gene(Edge edge, Edge *edge_table)
    }
 
    /* ... should never be reached */
-   elog(WARN, "gimme_gene: neither shared nor minimum number nor random edge found");
+   elog(ABORT, "gimme_gene: neither shared nor minimum number nor random edge found");
    return 0;                   /* to keep the compiler quiet */
 }
 
@@ -487,6 +487,6 @@ edge_failure(Gene *gene, int index, Edge *edge_table, int num_gene)
 
 
 /* ... should never be reached */
-   elog(WARN, "edge_failure: no edge detected");
+   elog(ABORT, "edge_failure: no edge detected");
    return 0;                   /* to keep the compiler quiet */
 }
index 7e721a34e89250a92762336ae5f909e6ba221dd3..97cda4ce78fda50421aa913535740923ea5889f5 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: geqo_eval.c,v 1.15 1997/09/08 21:44:19 momjian Exp $
+ * $Id: geqo_eval.c,v 1.16 1998/01/05 03:31:49 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -737,6 +737,6 @@ geqo_nth(int stop, List *rels)
            return lfirst(r);
        i++;
    }
-   elog(WARN, "geqo_nth: Internal error - ran off end of list");
+   elog(ABORT, "geqo_nth: Internal error - ran off end of list");
    return NULL;                /* to keep compiler happy */
 }
index e26a8ec5e4083fc9f8bc835bfb21e6dab171e719..d88954b265371b80042576b7dfbd93acf3ca57dc 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: geqo_misc.c,v 1.5 1997/09/08 21:44:26 momjian Exp $
+ * $Id: geqo_misc.c,v 1.6 1998/01/05 03:31:51 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -53,7 +53,7 @@ avg_pool(Pool *pool)
    double      cumulative = 0.0;
 
    if (pool->size == 0)
-       elog(WARN, "avg_pool: pool_size of zero");
+       elog(ABORT, "avg_pool: pool_size of zero");
 
    for (i = 0; i < pool->size; i++)
        cumulative = cumulative + pool->data[i].worth;
index 3ee98d0b14ed51654aa55f1a939f21910b115412..12c1a336c85174051531ad2b846559a1d519dfad 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/predmig.c,v 1.6 1997/09/08 21:45:07 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/predmig.c,v 1.7 1998/01/05 03:31:54 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -133,7 +133,7 @@ xfunc_predmig(JoinPath pathnode,/* root of the join tree */
    /* sanity check */
    if ((!streamroot && laststream) ||
        (streamroot && !laststream))
-       elog(WARN, "called xfunc_predmig with bad inputs");
+       elog(ABORT, "called xfunc_predmig with bad inputs");
    if (streamroot)
        Assert(xfunc_check_stream(streamroot));
 
@@ -333,7 +333,7 @@ xfunc_prdmig_pullup(Stream origstream, Stream pullme, JoinPath joinpath)
         orignode = (Stream) get_downstream(orignode))
         /* empty body in for loop */ ;
    if (!orignode)
-       elog(WARN, "Didn't find matching node in original stream");
+       elog(ABORT, "Didn't find matching node in original stream");
 
 
    /* pull up this node as far as it should go */
@@ -790,14 +790,14 @@ xfunc_check_stream(Stream node)
    {
        if ((Stream) get_upstream((Stream) get_downstream(temp)) != temp)
        {
-           elog(WARN, "bad pointers in stream");
+           elog(ABORT, "bad pointers in stream");
            return (false);
        }
        if (!is_clause(temp))
        {
            if ((tmp = xfunc_num_relids(temp)) >= numrelids)
            {
-               elog(WARN, "Joins got reordered!");
+               elog(ABORT, "Joins got reordered!");
                return (false);
            }
            numrelids = tmp;
index f7ff4e206c08ad381b155ab408a4f949a665542d..4358f1915038c82e4459139555684d4c7295a888 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.8 1997/12/23 03:27:23 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.9 1998/01/05 03:31:55 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -133,7 +133,7 @@ prune_rel_paths(List *rel_list)
            rel->size = compute_joinrel_size(cheapest);
        }
        else
-           elog(WARN, "non JoinPath called");
+           elog(ABORT, "non JoinPath called");
    }
 }
 
index 08f0b13cec8ffb295be6d2219adab99b2b8fe891..f04e8d3acf7d5821dd8042213e7ef6ba66caf063 100644 (file)
@@ -9,7 +9,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/xfunc.c,v 1.9 1997/12/22 05:41:59 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/xfunc.c,v 1.10 1998/01/05 03:31:56 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -461,7 +461,7 @@ xfunc_local_expense(LispValue clause)
    }
    else
    {
-       elog(WARN, "Clause node of undetermined type");
+       elog(ABORT, "Clause node of undetermined type");
        return (-1);
    }
 }
@@ -497,7 +497,7 @@ xfunc_func_expense(LispValue node, LispValue args)
    {
        /* don't trust the opid in the Oper node.  Use the opno. */
        if (!(funcid = get_opcode(get_opno((Oper) node))))
-           elog(WARN, "Oper's function is undefined");
+           elog(ABORT, "Oper's function is undefined");
    }
    else
    {
@@ -507,7 +507,7 @@ xfunc_func_expense(LispValue node, LispValue args)
    /* look up tuple in cache */
    tupl = SearchSysCacheTuple(PROOID, ObjectIdGetDatum(funcid), 0, 0, 0);
    if (!HeapTupleIsValid(tupl))
-       elog(WARN, "Cache lookup failed for procedure %d", funcid);
+       elog(ABORT, "Cache lookup failed for procedure %d", funcid);
    proc = (Form_pg_proc) GETSTRUCT(tupl);
 
    /*
@@ -622,7 +622,7 @@ xfunc_width(LispValue clause)
                              PointerGetDatum(get_vartype((Var) clause)),
                                   0, 0, 0);
        if (!HeapTupleIsValid(tupl))
-           elog(WARN, "Cache lookup failed for type %d",
+           elog(ABORT, "Cache lookup failed for type %d",
                 get_vartype((Var) clause));
        type = (TypeTupleForm) GETSTRUCT(tupl);
        if (get_varattno((Var) clause) == 0)
@@ -686,7 +686,7 @@ xfunc_width(LispValue clause)
                       ObjectIdGetDatum(get_opno((Oper) get_op(clause))),
                                   0, 0, 0);
        if (!HeapTupleIsValid(tupl))
-           elog(WARN, "Cache lookup failed for procedure %d",
+           elog(ABORT, "Cache lookup failed for procedure %d",
                 get_opno((Oper) get_op(clause)));
        return (xfunc_func_width
                ((RegProcedure) (((OperatorTupleForm) (GETSTRUCT(tupl)))->oprcode),
@@ -717,7 +717,7 @@ xfunc_width(LispValue clause)
    }
    else
    {
-       elog(WARN, "Clause node of undetermined type");
+       elog(ABORT, "Clause node of undetermined type");
        return (-1);
    }
 
@@ -855,7 +855,7 @@ xfunc_find_references(LispValue clause)
    }
    else
    {
-       elog(WARN, "Clause node of undetermined type");
+       elog(ABORT, "Clause node of undetermined type");
        return ((List) LispNil);
    }
 }
@@ -1192,7 +1192,7 @@ xfunc_fixvars(LispValue clause, /* clause being pulled up */
            xfunc_fixvars(lfirst(tmpclause), rel, varno);
    else
    {
-       elog(WARN, "Clause node of undetermined type");
+       elog(ABORT, "Clause node of undetermined type");
    }
 }
 
@@ -1320,7 +1320,7 @@ xfunc_func_width(RegProcedure funcid, LispValue args)
    Assert(RegProcedureIsValid(funcid));
    tupl = SearchSysCacheTuple(PROOID, ObjectIdGetDatum(funcid), 0, 0, 0);
    if (!HeapTupleIsValid(tupl))
-       elog(WARN, "Cache lookup failed for procedure %d", funcid);
+       elog(ABORT, "Cache lookup failed for procedure %d", funcid);
    proc = (Form_pg_proc) GETSTRUCT(tupl);
 
    /* if function returns a tuple, get the width of that */
@@ -1338,7 +1338,7 @@ xfunc_func_width(RegProcedure funcid, LispValue args)
                                   ObjectIdGetDatum(proc->prorettype),
                                   0, 0, 0);
        if (!HeapTupleIsValid(tupl))
-           elog(WARN, "Cache lookup failed for type %d", proc->prorettype);
+           elog(ABORT, "Cache lookup failed for type %d", proc->prorettype);
        type = (TypeTupleForm) GETSTRUCT(tupl);
        /* if the type length is known, return that */
        if (type->typlen != -1)
@@ -1421,7 +1421,7 @@ xfunc_LispRemove(LispValue foo, List bar)
            sanity = true;      /* found a matching item to remove! */
 
    if (!sanity)
-       elog(WARN, "xfunc_LispRemove: didn't find a match!");
+       elog(ABORT, "xfunc_LispRemove: didn't find a match!");
 
    return (result);
 }
index 521dcd5f4163822fb2080ae16c99d3eb5a136e21..b9c1a9a9bb60f98df6b009cf4999b50759116d92 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.20 1997/12/18 12:54:04 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.21 1998/01/05 03:31:59 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -185,7 +185,7 @@ create_scan_node(Path *best_path, List *tlist)
            break;
 
        default:
-           elog(WARN, "create_scan_node: unknown node type",
+           elog(ABORT, "create_scan_node: unknown node type",
                 best_path->pathtype);
            break;
    }
@@ -252,7 +252,7 @@ create_join_node(JoinPath *best_path, List *tlist)
            break;
        default:
            /* do nothing */
-           elog(WARN, "create_join_node: unknown node type",
+           elog(ABORT, "create_join_node: unknown node type",
                 best_path->path.pathtype);
    }
 
@@ -294,7 +294,7 @@ create_seqscan_node(Path *best_path, List *tlist, List *scan_clauses)
 
    temp = best_path->parent->relids;
    if (temp == NULL)
-       elog(WARN, "scanrelid is empty");
+       elog(ABORT, "scanrelid is empty");
    else
        scan_relid = (Index) lfirsti(temp);     /* ??? who takes care of
                                                 * lnext? - ay */
@@ -364,7 +364,7 @@ create_indexscan_node(IndexPath *best_path,
                                         ObjectIdGetDatum(lfirsti(ixid)),
                                         0, 0, 0);
        if (!HeapTupleIsValid(indexTuple))
-           elog(WARN, "create_plan: index %d not found",
+           elog(ABORT, "create_plan: index %d not found",
                 lfirsti(ixid));
        index = (IndexTupleForm) GETSTRUCT(indexTuple);
        if (index->indislossy)
@@ -915,7 +915,7 @@ make_temp(List *tlist,
            break;
 
        default:
-           elog(WARN, "make_temp: unknown temp type %d", temptype);
+           elog(ABORT, "make_temp: unknown temp type %d", temptype);
 
    }
    return (retval);
index 8691215b46602fbbff3336a06c3da62f4313db27..730cd0dd7eac21e8a3480994580cff37b87e62d0 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.13 1997/12/22 05:42:04 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.14 1998/01/05 03:32:03 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -407,7 +407,7 @@ make_groupPlan(List **tlist,
 
    if (length(glc) != 0)
    {
-       elog(WARN, "group attribute disappeared from target list");
+       elog(ABORT, "group attribute disappeared from target list");
    }
 
    /*
index bb33f49092d90e507657b2666549c296257ecd88..057fca9d3b074aeb1378290201adc3f70376202b 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.18 1997/12/29 01:12:45 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.19 1998/01/05 03:32:04 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -279,7 +279,7 @@ pg_checkretval(Oid rettype, QueryTreeList *queryTreeList)
        if (rettype == InvalidOid)
            return;
        else
-           elog(WARN, "return type mismatch in function decl: final query is a catalog utility");
+           elog(ABORT, "return type mismatch in function decl: final query is a catalog utility");
    }
 
    /* okay, it's an ordinary query */
@@ -294,7 +294,7 @@ pg_checkretval(Oid rettype, QueryTreeList *queryTreeList)
    if (rettype == InvalidOid)
    {
        if (cmd == CMD_SELECT)
-           elog(WARN,
+           elog(ABORT,
                 "function declared with no return type, but final query is a retrieve");
        else
            return;
@@ -302,14 +302,14 @@ pg_checkretval(Oid rettype, QueryTreeList *queryTreeList)
 
    /* by here, the function is declared to return some type */
    if ((typ = typeidType(rettype)) == NULL)
-       elog(WARN, "can't find return type %d for function\n", rettype);
+       elog(ABORT, "can't find return type %d for function\n", rettype);
 
    /*
     * test 3:  if the function is declared to return a value, then the
     * final query had better be a retrieve.
     */
    if (cmd != CMD_SELECT)
-       elog(WARN, "function declared to return type %s, but final query is not a retrieve", typeTypeName(typ));
+       elog(ABORT, "function declared to return type %s, but final query is not a retrieve", typeTypeName(typ));
 
    /*
     * test 4:  for base type returns, the target list should have exactly
@@ -319,11 +319,11 @@ pg_checkretval(Oid rettype, QueryTreeList *queryTreeList)
    if (typeTypeRelid(typ) == InvalidOid)
    {
        if (exec_tlist_length(tlist) > 1)
-           elog(WARN, "function declared to return %s returns multiple values in final retrieve", typeTypeName(typ));
+           elog(ABORT, "function declared to return %s returns multiple values in final retrieve", typeTypeName(typ));
 
        resnode = (Resdom *) ((TargetEntry *) lfirst(tlist))->resdom;
        if (resnode->restype != rettype)
-           elog(WARN, "return type mismatch in function: declared to return %s, returns %s", typeTypeName(typ), typeidTypeName(resnode->restype));
+           elog(ABORT, "return type mismatch in function: declared to return %s, returns %s", typeTypeName(typ), typeidTypeName(resnode->restype));
 
        /* by here, base return types match */
        return;
@@ -352,13 +352,13 @@ pg_checkretval(Oid rettype, QueryTreeList *queryTreeList)
    reln = heap_open(typeTypeRelid(typ));
 
    if (!RelationIsValid(reln))
-       elog(WARN, "cannot open relation relid %d", typeTypeRelid(typ));
+       elog(ABORT, "cannot open relation relid %d", typeTypeRelid(typ));
 
    relid = reln->rd_id;
    relnatts = reln->rd_rel->relnatts;
 
    if (exec_tlist_length(tlist) != relnatts)
-       elog(WARN, "function declared to return type %s does not retrieve (%s.*)", typeTypeName(typ), typeTypeName(typ));
+       elog(ABORT, "function declared to return type %s does not retrieve (%s.*)", typeTypeName(typ), typeTypeName(typ));
 
    /* expect attributes 1 .. n in order */
    for (i = 1; i <= relnatts; i++)
@@ -388,14 +388,14 @@ pg_checkretval(Oid rettype, QueryTreeList *queryTreeList)
            else if (IsA(thenode, Func))
                tletype = (Oid) get_functype((Func *) thenode);
            else
-               elog(WARN, "function declared to return type %s does not retrieve (%s.all)", typeTypeName(typ), typeTypeName(typ));
+               elog(ABORT, "function declared to return type %s does not retrieve (%s.all)", typeTypeName(typ), typeTypeName(typ));
        }
        else
-           elog(WARN, "function declared to return type %s does not retrieve (%s.all)", typeTypeName(typ), typeTypeName(typ));
+           elog(ABORT, "function declared to return type %s does not retrieve (%s.all)", typeTypeName(typ), typeTypeName(typ));
 #endif
        /* reach right in there, why don't you? */
        if (tletype != reln->rd_att->attrs[i - 1]->atttypid)
-           elog(WARN, "function declared to return type %s does not retrieve (%s.all)", typeTypeName(typ), typeTypeName(typ));
+           elog(ABORT, "function declared to return type %s does not retrieve (%s.all)", typeTypeName(typ), typeTypeName(typ));
    }
 
    heap_close(reln);
index 7c8371a79c4adf25c09e3530ec128093930335da..b9d840154e3c8065251ecfb127d1c6a4484b7e18 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.10 1997/12/22 05:42:10 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.11 1998/01/05 03:32:05 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -201,7 +201,7 @@ set_temp_tlist_references(Temp *temp)
    }
    else
    {
-       elog(WARN, "calling set_temp_tlist_references with empty lefttree");
+       elog(ABORT, "calling set_temp_tlist_references with empty lefttree");
    }
 }
 
@@ -651,7 +651,7 @@ replace_result_clause(List *clause,
        /*
         * Ooops! we can not handle that!
         */
-       elog(WARN, "replace_result_clause: Can not handle this tlist!\n");
+       elog(ABORT, "replace_result_clause: Can not handle this tlist!\n");
    }
 }
 
@@ -809,7 +809,7 @@ replace_agg_clause(Node *clause, List *subplanTargetList)
        /*
         * Ooops! we can not handle that!
         */
-       elog(WARN, "replace_agg_clause: Can not handle this tlist!\n");
+       elog(ABORT, "replace_agg_clause: Can not handle this tlist!\n");
    }
 
 }
@@ -902,7 +902,7 @@ del_agg_clause(Node *clause)
        /*
         * Ooops! we can not handle that!
         */
-       elog(WARN, "del_agg_clause: Can not handle this tlist!\n");
+       elog(ABORT, "del_agg_clause: Can not handle this tlist!\n");
    }
    return NULL;
 }
index 15271d33b9b5c8d969f463b40b29cffbaa423aef..0c7e52f82c8867145e4a89a603413500ed545dc3 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.11 1997/11/20 23:22:01 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.12 1998/01/05 03:32:09 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -77,7 +77,7 @@ relation_info(Query *root, Index relid,
    }
    else
    {
-       elog(WARN, "RelationCatalogInformation: Relation %d not found",
+       elog(ABORT, "RelationCatalogInformation: Relation %d not found",
             relationObjectId);
    }
 
@@ -152,7 +152,7 @@ index_info(Query *root, bool first, int relid, IdxInfoRetval *info)
                              1, &indexKey);
    }
    if (!HeapScanIsValid(scan))
-       elog(WARN, "index_info: scan not started");
+       elog(ABORT, "index_info: scan not started");
    indexTuple = heap_getnext(scan, 0, (Buffer *) NULL);
    if (!HeapTupleIsValid(indexTuple))
    {
@@ -218,7 +218,7 @@ index_info(Query *root, bool first, int relid, IdxInfoRetval *info)
                                        UInt16GetDatum(amstrategy),
                                        0);
        if (!HeapTupleIsValid(amopTuple))
-           elog(WARN, "index_info: no amop %d %d %d",
+           elog(ABORT, "index_info: no amop %d %d %d",
                 relam, index->indclass[i], amstrategy);
        info->orderOprs[i] =
            ((Form_pg_amop) GETSTRUCT(amopTuple))->amopopr;
@@ -349,10 +349,10 @@ restriction_selectivity(Oid functionObjectId,
                            (char *) constFlag,
                            NULL);
    if (!PointerIsValid(result))
-       elog(WARN, "RestrictionClauseSelectivity: bad pointer");
+       elog(ABORT, "RestrictionClauseSelectivity: bad pointer");
 
    if (*result < 0.0 || *result > 1.0)
-       elog(WARN, "RestrictionClauseSelectivity: bad value %lf",
+       elog(ABORT, "RestrictionClauseSelectivity: bad value %lf",
             *result);
 
    return ((Cost) *result);
@@ -388,10 +388,10 @@ join_selectivity(Oid functionObjectId,
                            (char *) (int) attributeNumber2,
                            NULL);
    if (!PointerIsValid(result))
-       elog(WARN, "JoinClauseSelectivity: bad pointer");
+       elog(ABORT, "JoinClauseSelectivity: bad pointer");
 
    if (*result < 0.0 || *result > 1.0)
-       elog(WARN, "JoinClauseSelectivity: bad value %lf",
+       elog(ABORT, "JoinClauseSelectivity: bad value %lf",
             *result);
 
    return ((Cost) *result);
@@ -532,7 +532,7 @@ IndexSelectivity(Oid indexrelid,
                                 ObjectIdGetDatum(indexrelid),
                                 0, 0, 0);
    if (!HeapTupleIsValid(indRel))
-       elog(WARN, "IndexSelectivity: index %d not found",
+       elog(ABORT, "IndexSelectivity: index %d not found",
             indexrelid);
    relam = ((Form_pg_class) GETSTRUCT(indRel))->relam;
 
@@ -540,7 +540,7 @@ IndexSelectivity(Oid indexrelid,
                                     ObjectIdGetDatum(indexrelid),
                                     0, 0, 0);
    if (!HeapTupleIsValid(indexTuple))
-       elog(WARN, "IndexSelectivity: index %d not found",
+       elog(ABORT, "IndexSelectivity: index %d not found",
             indexrelid);
    index = (IndexTupleForm) GETSTRUCT(indexTuple);
 
@@ -595,7 +595,7 @@ IndexSelectivity(Oid indexrelid,
                                        ObjectIdGetDatum(relam),
                                        0);
        if (!HeapTupleIsValid(amopTuple))
-           elog(WARN, "IndexSelectivity: no amop %d %d",
+           elog(ABORT, "IndexSelectivity: no amop %d %d",
                 indclass, operatorObjectIds[n]);
        amop = (Form_pg_amop) GETSTRUCT(amopTuple);
 
index 38be6719629c4877a9bf1e5aad0ec90a40d18e89..659cd255db37541f5869c2feee7cdca49ac106a9 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.60 1997/12/29 05:13:35 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.61 1998/01/05 03:32:12 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -478,7 +478,7 @@ printf("transformCreateStmt- found constraint(s) on column %s\n",column->colname
 printf("transformCreateStmt- found NOT NULL constraint on column %s\n",column->colname);
 #endif
                                if (column->is_not_null)
-                                   elog(WARN,"CREATE TABLE/NOT NULL already specified"
+                                   elog(ERROR,"CREATE TABLE/NOT NULL already specified"
                                        " for %s.%s", stmt->relname, column->colname);
                                column->is_not_null = TRUE;
                                break;
@@ -488,7 +488,7 @@ printf("transformCreateStmt- found NOT NULL constraint on column %s\n",column->c
 printf("transformCreateStmt- found DEFAULT clause on column %s\n",column->colname);
 #endif
                                if (column->defval != NULL)
-                                   elog(WARN,"CREATE TABLE/DEFAULT multiple values specified"
+                                   elog(ERROR,"CREATE TABLE/DEFAULT multiple values specified"
                                        " for %s.%s", stmt->relname, column->colname);
                                column->defval = constraint->def;
                                break;
@@ -525,7 +525,7 @@ printf("transformCreateStmt- found CHECK clause on column %s\n",column->colname)
                                break;
 
                            default:
-                               elog(WARN,"parser: internal error; unrecognized constraint",NULL);
+                               elog(ERROR,"parser: internal error; unrecognized constraint",NULL);
                                break;
                        }
                        clist = lnext(clist);
@@ -569,16 +569,16 @@ printf("transformCreateStmt- found CHECK clause\n");
 
                    case CONSTR_NOTNULL:
                    case CONSTR_DEFAULT:
-                       elog(WARN,"parser: internal error; illegal context for constraint",NULL);
+                       elog(ERROR,"parser: internal error; illegal context for constraint",NULL);
                        break;
                    default:
-                       elog(WARN,"parser: internal error; unrecognized constraint",NULL);
+                       elog(ERROR,"parser: internal error; unrecognized constraint",NULL);
                        break;
                }
                break;
 
            default:
-               elog(WARN,"parser: internal error; unrecognized node",NULL);
+               elog(ERROR,"parser: internal error; unrecognized node",NULL);
        }
 
        elements = lnext(elements);
@@ -601,7 +601,7 @@ printf("transformCreateStmt- found CHECK clause\n");
    {
        constraint = lfirst(dlist);
        if (nodeTag(constraint) != T_Constraint)
-           elog(WARN,"parser: internal error; unrecognized deferred node",NULL);
+           elog(ERROR,"parser: internal error; unrecognized deferred node",NULL);
 
 #if PARSEDEBUG
 printf("transformCreateStmt- found deferred constraint %s\n",
@@ -610,12 +610,12 @@ printf("transformCreateStmt- found deferred constraint %s\n",
 
        if (constraint->contype == CONSTR_PRIMARY)
            if (have_pkey)
-               elog(WARN,"CREATE TABLE/PRIMARY KEY multiple primary keys"
+               elog(ERROR,"CREATE TABLE/PRIMARY KEY multiple primary keys"
                    " for table %s are not legal", stmt->relname);
            else 
                have_pkey = TRUE;
        else if (constraint->contype != CONSTR_UNIQUE)
-           elog(WARN,"parser: internal error; unrecognized deferred constraint",NULL);
+           elog(ERROR,"parser: internal error; unrecognized deferred constraint",NULL);
 
 #if PARSEDEBUG
 printf("transformCreateStmt- found deferred %s clause\n",
@@ -630,7 +630,7 @@ printf("transformCreateStmt- found deferred %s clause\n",
        else if (constraint->contype == CONSTR_PRIMARY)
        {
            if (have_pkey)
-               elog(WARN,"CREATE TABLE/PRIMARY KEY multiple keys for table %s are not legal", stmt->relname);
+               elog(ERROR,"CREATE TABLE/PRIMARY KEY multiple keys for table %s are not legal", stmt->relname);
 
            have_pkey = TRUE;
            index->idxname = makeTableName(stmt->relname, "pkey", NULL);
@@ -664,7 +664,7 @@ printf("transformCreateStmt- check column %s for key match\n", column->colname);
                columns = lnext(columns);
            }
            if (column == NULL)
-               elog(WARN,"parser: column '%s' in key does not exist",key->name);
+               elog(ERROR,"parser: column '%s' in key does not exist",key->name);
 
            if (constraint->contype == CONSTR_PRIMARY)
            {
@@ -687,7 +687,7 @@ printf("transformCreateStmt- mark column %s as NOT NULL\n", column->colname);
        }
 
        if (index->idxname == NULL)
-           elog(WARN,"parser: unable to construct implicit index for table %s"
+           elog(ERROR,"parser: unable to construct implicit index for table %s"
                "; name too long", stmt->relname);
        else
            elog(NOTICE,"CREATE TABLE/%s will create implicit index %s for table %s",
index 963d5adf0dc569798affb69d8b0fa2386cf45caf..daa2aab1bba2f27a8ca6784569db132172b1ea1f 100644 (file)
@@ -10,7 +10,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.83 1998/01/04 04:31:08 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.84 1998/01/05 03:32:18 momjian Exp $
  *
  * HISTORY
  *   AUTHOR            DATE            MAJOR EVENT
@@ -590,17 +590,17 @@ alter_clause:  ADD opt_column columnDef
                    Node *lp = lfirst($3);
 
                    if (length($3) != 1)
-                       elog(WARN,"ALTER TABLE/ADD() allows one column only",NULL);
+                       elog(ABORT,"ALTER TABLE/ADD() allows one column only",NULL);
                    $$ = lp;
                }
            | DROP opt_column ColId
-               {   elog(WARN,"ALTER TABLE/DROP COLUMN not yet implemented",NULL); }
+               {   elog(ABORT,"ALTER TABLE/DROP COLUMN not yet implemented",NULL); }
            | ALTER opt_column ColId SET DEFAULT default_expr
-               {   elog(WARN,"ALTER TABLE/ALTER COLUMN/SET DEFAULT not yet implemented",NULL); }
+               {   elog(ABORT,"ALTER TABLE/ALTER COLUMN/SET DEFAULT not yet implemented",NULL); }
            | ALTER opt_column ColId DROP DEFAULT
-               {   elog(WARN,"ALTER TABLE/ALTER COLUMN/DROP DEFAULT not yet implemented",NULL); }
+               {   elog(ABORT,"ALTER TABLE/ALTER COLUMN/DROP DEFAULT not yet implemented",NULL); }
            | ADD ConstraintElem
-               {   elog(WARN,"ALTER TABLE/ADD CONSTRAINT not yet implemented",NULL); }
+               {   elog(ABORT,"ALTER TABLE/ADD CONSTRAINT not yet implemented",NULL); }
        ;
 
 
@@ -811,11 +811,11 @@ default_expr:  AexprConst
            | default_expr '*' default_expr
                {   $$ = nconc( $1, lcons( makeString( "*"), $3)); }
            | default_expr '=' default_expr
-               {   elog(WARN,"boolean expressions not supported in DEFAULT",NULL); }
+               {   elog(ABORT,"boolean expressions not supported in DEFAULT",NULL); }
            | default_expr '<' default_expr
-               {   elog(WARN,"boolean expressions not supported in DEFAULT",NULL); }
+               {   elog(ABORT,"boolean expressions not supported in DEFAULT",NULL); }
            | default_expr '>' default_expr
-               {   elog(WARN,"boolean expressions not supported in DEFAULT",NULL); }
+               {   elog(ABORT,"boolean expressions not supported in DEFAULT",NULL); }
            | ':' default_expr
                {   $$ = lcons( makeString( ":"), $2); }
            | ';' default_expr
@@ -848,7 +848,7 @@ default_expr:  AexprConst
            | default_expr Op default_expr
                {
                    if (!strcmp("<=", $2) || !strcmp(">=", $2))
-                       elog(WARN,"boolean expressions not supported in DEFAULT",NULL);
+                       elog(ABORT,"boolean expressions not supported in DEFAULT",NULL);
                    $$ = nconc( $1, lcons( makeString( $2), $3));
                }
            | Op default_expr
@@ -1200,13 +1200,13 @@ TriggerOneEvent:        INSERT  { $$ = 'i'; }
 TriggerForSpec:  FOR name name
                {
                        if ( strcmp ($2, "each") != 0 )
-                               elog(WARN,"parser: syntax error near %s",$2);
+                               elog(ABORT,"parser: syntax error near %s",$2);
                        if ( strcmp ($3, "row") == 0 )
                                $$ = TRUE;
                        else if ( strcmp ($3, "statement") == 0 )
                                $$ = FALSE;
                        else
-                               elog(WARN,"parser: syntax error near %s",$3);
+                               elog(ABORT,"parser: syntax error near %s",$3);
                }
        ;
 
@@ -1379,7 +1379,7 @@ opt_direction:    FORWARD                         { $$ = FORWARD; }
 
 fetch_how_many:  Iconst
               { $$ = $1;
-                if ($1 <= 0) elog(WARN,"Please specify nonnegative count for fetch",NULL); }
+                if ($1 <= 0) elog(ABORT,"Please specify nonnegative count for fetch",NULL); }
        | ALL                           { $$ = 0; /* 0 means fetch all tuples*/ }
        | /*EMPTY*/                     { $$ = 1; /*default*/ }
        ;
@@ -1597,7 +1597,7 @@ RecipeStmt:  EXECUTE RECIPE recipe_name
                {
                    RecipeStmt *n;
                    if (!IsTransactionBlock())
-                       elog(WARN,"EXECUTE RECIPE may only be used in begin/end transaction blocks",NULL);
+                       elog(ABORT,"EXECUTE RECIPE may only be used in begin/end transaction blocks",NULL);
 
                    n = makeNode(RecipeStmt);
                    n->recipeName = $3;
@@ -1725,7 +1725,7 @@ MathOp:   '+'             { $$ = "+"; }
 
 oper_argtypes: name
                {
-                  elog(WARN,"parser: argument type missing (use NONE for unary operators)",NULL);
+                  elog(ABORT,"parser: argument type missing (use NONE for unary operators)",NULL);
                }
        | name ',' name
                { $$ = makeList(makeString($1), makeString($3), -1); }
@@ -2063,7 +2063,7 @@ VacuumStmt:  VACUUM opt_verbose opt_analyze
                    n->vacrel = $4;
                    n->va_spec = $5;
                    if ( $5 != NIL && !$4 )
-                       elog(WARN,"parser: syntax error at or near \"(\"",NULL);
+                       elog(ABORT,"parser: syntax error at or near \"(\"",NULL);
                    $$ = (Node *)n;
                }
        ;
@@ -2240,7 +2240,7 @@ CursorStmt:  DECLARE name opt_binary CURSOR FOR
                     *                          -- mao
                     */
                    if (!IsTransactionBlock())
-                       elog(WARN,"Named portals may only be used in begin/end transaction blocks",NULL);
+                       elog(ABORT,"Named portals may only be used in begin/end transaction blocks",NULL);
 
                    n->portalname = $2;
                    n->binary = $3;
@@ -2444,7 +2444,7 @@ having_clause:  HAVING a_expr                 { $$ = $2; }
 from_clause:  FROM '(' relation_expr join_expr JOIN relation_expr join_spec ')'
                {
                    $$ = NIL;
-                   elog(WARN,"JOIN not yet implemented",NULL);
+                   elog(ABORT,"JOIN not yet implemented",NULL);
                }
        | FROM from_list                        { $$ = $2; }
        | /*EMPTY*/                             { $$ = NIL; }
@@ -2453,7 +2453,7 @@ from_clause:  FROM '(' relation_expr join_expr JOIN relation_expr join_spec ')'
 from_list: from_list ',' from_val
                { $$ = lappend($1, $3); }
        | from_val CROSS JOIN from_val
-               { elog(WARN,"CROSS JOIN not yet implemented",NULL); }
+               { elog(ABORT,"CROSS JOIN not yet implemented",NULL); }
        | from_val
                { $$ = lcons($1, NIL); }
        ;
@@ -2480,19 +2480,19 @@ from_val:  relation_expr AS ColLabel
 
 join_expr:  NATURAL join_expr                  { $$ = NULL; }
        | FULL join_outer
-               { elog(WARN,"FULL OUTER JOIN not yet implemented",NULL); }
+               { elog(ABORT,"FULL OUTER JOIN not yet implemented",NULL); }
        | LEFT join_outer
-               { elog(WARN,"LEFT OUTER JOIN not yet implemented",NULL); }
+               { elog(ABORT,"LEFT OUTER JOIN not yet implemented",NULL); }
        | RIGHT join_outer
-               { elog(WARN,"RIGHT OUTER JOIN not yet implemented",NULL); }
+               { elog(ABORT,"RIGHT OUTER JOIN not yet implemented",NULL); }
        | OUTER_P
-               { elog(WARN,"OUTER JOIN not yet implemented",NULL); }
+               { elog(ABORT,"OUTER JOIN not yet implemented",NULL); }
        | INNER_P
-               { elog(WARN,"INNER JOIN not yet implemented",NULL); }
+               { elog(ABORT,"INNER JOIN not yet implemented",NULL); }
        | UNION
-               { elog(WARN,"UNION JOIN not yet implemented",NULL); }
+               { elog(ABORT,"UNION JOIN not yet implemented",NULL); }
        | /*EMPTY*/
-               { elog(WARN,"INNER JOIN not yet implemented",NULL); }
+               { elog(ABORT,"INNER JOIN not yet implemented",NULL); }
        ;
 
 join_outer:  OUTER_P                           { $$ = NULL; }
@@ -2653,13 +2653,13 @@ Numeric:  FLOAT opt_float
 opt_float:  '(' Iconst ')'
                {
                    if ($2 < 1)
-                       elog(WARN,"precision for FLOAT must be at least 1",NULL);
+                       elog(ABORT,"precision for FLOAT must be at least 1",NULL);
                    else if ($2 < 7)
                        $$ = xlateSqlType("float4");
                    else if ($2 < 16)
                        $$ = xlateSqlType("float8");
                    else
-                       elog(WARN,"precision for FLOAT must be less than 16",NULL);
+                       elog(ABORT,"precision for FLOAT must be less than 16",NULL);
                }
        | /*EMPTY*/
                {
@@ -2670,14 +2670,14 @@ opt_float:  '(' Iconst ')'
 opt_numeric:  '(' Iconst ',' Iconst ')'
                {
                    if ($2 != 9)
-                       elog(WARN,"NUMERIC precision %d must be 9",$2);
+                       elog(ABORT,"NUMERIC precision %d must be 9",$2);
                    if ($4 != 0)
-                       elog(WARN,"NUMERIC scale %d must be zero",$4);
+                       elog(ABORT,"NUMERIC scale %d must be zero",$4);
                }
        | '(' Iconst ')'
                {
                    if ($2 != 9)
-                       elog(WARN,"NUMERIC precision %d must be 9",$2);
+                       elog(ABORT,"NUMERIC precision %d must be 9",$2);
                }
        | /*EMPTY*/
                {
@@ -2688,15 +2688,15 @@ opt_numeric:  '(' Iconst ',' Iconst ')'
 opt_decimal:  '(' Iconst ',' Iconst ')'
                {
                    if ($2 > 9)
-                       elog(WARN,"DECIMAL precision %d exceeds implementation limit of 9",$2);
+                       elog(ABORT,"DECIMAL precision %d exceeds implementation limit of 9",$2);
                    if ($4 != 0)
-                       elog(WARN,"DECIMAL scale %d must be zero",$4);
+                       elog(ABORT,"DECIMAL scale %d must be zero",$4);
                    $$ = NULL;
                }
        | '(' Iconst ')'
                {
                    if ($2 > 9)
-                       elog(WARN,"DECIMAL precision %d exceeds implementation limit of 9",$2);
+                       elog(ABORT,"DECIMAL precision %d exceeds implementation limit of 9",$2);
                    $$ = NULL;
                }
        | /*EMPTY*/
@@ -2722,14 +2722,14 @@ Character:  character '(' Iconst ')'
                    else
                        yyerror("parse error");
                    if ($3 < 1)
-                       elog(WARN,"length for '%s' type must be at least 1",$1);
+                       elog(ABORT,"length for '%s' type must be at least 1",$1);
                    else if ($3 > 4096)
                        /* we can store a char() of length up to the size
                         * of a page (8KB) - page headers and friends but
                         * just to be safe here...  - ay 6/95
                         * XXX note this hardcoded limit - thomas 1997-07-13
                         */
-                       elog(WARN,"length for type '%s' cannot exceed 4096",$1);
+                       elog(ABORT,"length for type '%s' cannot exceed 4096",$1);
 
                    /* we actually implement this sort of like a varlen, so
                     * the first 4 bytes is the length. (the difference
@@ -2762,7 +2762,7 @@ character:  CHARACTER opt_varying opt_charset opt_collate
                        }
                    };
                    if ($4 != NULL)
-                   elog(WARN,"COLLATE %s not yet implemented",$4);
+                   elog(ABORT,"COLLATE %s not yet implemented",$4);
                    $$ = type;
                }
        | CHAR opt_varying                      { $$ = xlateSqlType($2? "varchar": "char"); }
@@ -3098,7 +3098,7 @@ a_expr:  attr opt_indirection
         */
        | EXISTS '(' SubSelect ')'
                {
-                   elog(WARN,"EXISTS not yet implemented",NULL);
+                   elog(ABORT,"EXISTS not yet implemented",NULL);
                    $$ = $3;
                }
        | EXTRACT '(' extract_list ')'
@@ -3428,7 +3428,7 @@ trim_list:  a_expr FROM expr_list
 
 in_expr:  SubSelect
                {
-                   elog(WARN,"IN (SUBSELECT) not yet implemented",NULL);
+                   elog(ABORT,"IN (SUBSELECT) not yet implemented",NULL);
                    $$ = $1;
                }
        | in_expr_nodes
@@ -3445,7 +3445,7 @@ in_expr_nodes:  AexprConst
 
 not_in_expr:  SubSelect
                {
-                   elog(WARN,"NOT IN (SUBSELECT) not yet implemented",NULL);
+                   elog(ABORT,"NOT IN (SUBSELECT) not yet implemented",NULL);
                    $$ = $1;
                }
        | not_in_expr_nodes
@@ -3606,7 +3606,7 @@ relation_name:    SpecialRuleRelation
                    /* disallow refs to variable system tables */
                    if (strcmp(LogRelationName, $1) == 0
                       || strcmp(VariableRelationName, $1) == 0)
-                       elog(WARN,"%s cannot be accessed by users",$1);
+                       elog(ABORT,"%s cannot be accessed by users",$1);
                    else
                        $$ = $1;
                    StrNCpy(saved_relname, $1, NAMEDATALEN);
@@ -3765,14 +3765,14 @@ SpecialRuleRelation:  CURRENT
                    if (QueryIsRule)
                        $$ = "*CURRENT*";
                    else
-                       elog(WARN,"CURRENT used in non-rule query",NULL);
+                       elog(ABORT,"CURRENT used in non-rule query",NULL);
                }
        | NEW
                {
                    if (QueryIsRule)
                        $$ = "*NEW*";
                    else
-                       elog(WARN,"NEW used in non-rule query",NULL);
+                       elog(ABORT,"NEW used in non-rule query",NULL);
                }
        ;
 
@@ -3800,7 +3800,7 @@ makeRowExpr(char *opr, List *largs, List *rargs)
    Node *larg, *rarg;
 
    if (length(largs) != length(rargs))
-       elog(WARN,"Unequal number of entries in row expression",NULL);
+       elog(ABORT,"Unequal number of entries in row expression",NULL);
 
    if (lnext(largs) != NIL)
        expr = makeRowExpr(opr,lnext(largs),lnext(rargs));
@@ -3828,7 +3828,7 @@ makeRowExpr(char *opr, List *largs, List *rargs)
    }
    else
    {
-       elog(WARN,"Operator '%s' not implemented for row expressions",opr);
+       elog(ABORT,"Operator '%s' not implemented for row expressions",opr);
    }
 
 #if FALSE
@@ -3858,7 +3858,7 @@ mapTargetColumns(List *src, List *dst)
    ResTarget *d;
 
    if (length(src) != length(dst))
-       elog(WARN,"CREATE TABLE/AS SELECT has mismatched column count",NULL);
+       elog(ABORT,"CREATE TABLE/AS SELECT has mismatched column count",NULL);
 
    while ((src != NIL) && (dst != NIL))
    {
@@ -4069,7 +4069,7 @@ makeConstantList( A_Const *n)
 {
    char *defval = NULL;
    if (nodeTag(n) != T_A_Const) {
-       elog(WARN,"Cannot handle non-constant parameter",NULL);
+       elog(ABORT,"Cannot handle non-constant parameter",NULL);
 
    } else if (n->val.type == T_Float) {
        defval = (char*) palloc(20+1);
@@ -4086,7 +4086,7 @@ makeConstantList( A_Const *n)
        strcat( defval, "'");
 
    } else {
-       elog(WARN,"Internal error in makeConstantList(): cannot encode node",NULL);
+       elog(ABORT,"Internal error in makeConstantList(): cannot encode node",NULL);
    };
 
 #ifdef PARSEDEBUG
index 085be80824c6c5d253df7b940f63d3e857b366a0..45c450f7d025f343784164c8abaa23fec0004d5f 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.28 1997/12/16 05:04:00 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.29 1998/01/05 03:32:22 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -248,7 +248,7 @@ AtomValueGetString(int atomval)
        if (ScanKeywords[i].value == atomval)
            return (ScanKeywords[i].name);
 
-   elog(WARN, "AtomGetString called with bogus atom # : %d", atomval);
+   elog(ERROR, "AtomGetString called with bogus atom # : %d", atomval);
    return (NULL);
 }
 
index a244d0398ce54eb80f507b5238b5fd8f5ae90b26..dfaaa991843c50058940a35a758e34f829deb9e1 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/parse_agg.c,v 1.5 1998/01/04 04:31:14 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/parse_agg.c,v 1.6 1998/01/05 03:32:25 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -208,7 +208,7 @@ tleIsAggOrGroupCol(TargetEntry *tle, List *groupClause)
        if (tle->resdom->resno == grpcl->entry->resdom->resno)
        {
            if (contain_agg_clause((Node *) expr))
-               elog(WARN, "parser: aggregates not allowed in GROUP BY clause");
+               elog(ERROR, "parser: aggregates not allowed in GROUP BY clause");
            return TRUE;
        }
    }
@@ -248,7 +248,7 @@ parseCheckAggregates(ParseState *pstate, Query *qry)
     * non-group column in target list may fail.)
     */
    if (contain_agg_clause(qry->qual))
-       elog(WARN, "parser: aggregates not allowed in WHERE clause");
+       elog(ERROR, "parser: aggregates not allowed in WHERE clause");
 
    /*
     * the target list can only contain aggregates, group columns and
@@ -259,7 +259,7 @@ parseCheckAggregates(ParseState *pstate, Query *qry)
        TargetEntry *tle = lfirst(tl);
 
        if (!tleIsAggOrGroupCol(tle, qry->groupClause))
-           elog(WARN,
+           elog(ERROR,
                 "parser: illegal use of aggregates or non-group column in target list");
    }
 
@@ -271,7 +271,7 @@ parseCheckAggregates(ParseState *pstate, Query *qry)
  * Need to change here when we get HAVING works. Currently
  * qry->havingQual is NULL.        - vadim 04/05/97
    if (!exprIsAggOrGroupCol(qry->havingQual, qry->groupClause))
-       elog(WARN,
+       elog(ERROR,
             "parser: illegal use of aggregates or non-group column in HAVING clause");
  */
    return;
@@ -295,7 +295,7 @@ ParseAgg(ParseState *pstate, char *aggname, Oid basetype,
                                      0, 0);
    if (!HeapTupleIsValid(theAggTuple))
    {
-       elog(WARN, "aggregate %s does not exist", aggname);
+       elog(ERROR, "aggregate %s does not exist", aggname);
    }
 
    /*
@@ -346,7 +346,7 @@ ParseAgg(ParseState *pstate, char *aggname, Oid basetype,
                break;
            }
            if (first_valid_rte == NULL)
-               elog(WARN, "Can't find column to do aggregate(*) on.");
+               elog(ERROR, "Can't find column to do aggregate(*) on.");
                
            attr->relname = first_valid_rte->refname;
            attr->attrs = lcons(makeString(
@@ -379,7 +379,7 @@ ParseAgg(ParseState *pstate, char *aggname, Oid basetype,
            tp1 = typeidType(basetype);
            tp2 = typeidType(vartype);
            elog(NOTICE, "Aggregate type mismatch:");
-           elog(WARN, "%s works on %s, not %s", aggname,
+           elog(ERROR, "%s works on %s, not %s", aggname,
                 typeTypeName(tp1), typeTypeName(tp2));
        }
    }
@@ -411,11 +411,11 @@ agg_error(char *caller, char *aggname, Oid basetypeID)
 
    if (basetypeID == InvalidOid)
    {
-       elog(WARN, "%s: aggregate '%s' for all types does not exist", caller, aggname);
+       elog(ERROR, "%s: aggregate '%s' for all types does not exist", caller, aggname);
    }
    else
    {
-       elog(WARN, "%s: aggregate '%s' for '%s' does not exist", caller, aggname,
+       elog(ERROR, "%s: aggregate '%s' for '%s' does not exist", caller, aggname,
             typeidTypeName(basetypeID));
    }
 }
index 204f45bb59f2502cc1db8d1519a6a21f7a2ee9de..edd98195a63d7bfe017b2da3d1f66b966ccf408c 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.6 1997/12/29 04:31:31 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.7 1998/01/05 03:32:26 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -75,7 +75,7 @@ transformWhereClause(ParseState *pstate, Node *a_expr)
    pstate->p_in_where_clause = false;
    if (exprType(qual) != BOOLOID)
    {
-       elog(WARN,
+       elog(ERROR,
             "where clause must return type bool, not %s",
             typeidTypeName(exprType(qual)));
    }
@@ -170,7 +170,7 @@ find_targetlist_entry(ParseState *pstate, SortGroupBy *sortgroupby, List *tlist)
                    if (real_rtable_pos == test_rtable_pos)
                    {
                        if (target_result != NULL)
-                           elog(WARN, "Order/Group By '%s' is ambiguous", sortgroupby->name);
+                           elog(ERROR, "Order/Group By '%s' is ambiguous", sortgroupby->name);
                        else
                            target_result = target;
                    }
@@ -178,7 +178,7 @@ find_targetlist_entry(ParseState *pstate, SortGroupBy *sortgroupby, List *tlist)
                else
                {
                    if (target_result != NULL)
-                       elog(WARN, "Order/Group By '%s' is ambiguous", sortgroupby->name);
+                       elog(ERROR, "Order/Group By '%s' is ambiguous", sortgroupby->name);
                    else
                        target_result = target;
                }
@@ -208,7 +208,7 @@ transformGroupClause(ParseState *pstate, List *grouplist, List *targetlist)
        restarget = find_targetlist_entry(pstate, lfirst(grouplist), targetlist);
 
        if (restarget == NULL)
-           elog(WARN, "The field being grouped by must appear in the target list");
+           elog(ERROR, "The field being grouped by must appear in the target list");
 
        grpcl->entry = restarget;
        resdom = restarget->resdom;
@@ -267,7 +267,7 @@ transformSortClause(ParseState *pstate,
        
        restarget = find_targetlist_entry(pstate, sortby, targetlist);
        if (restarget == NULL)
-           elog(WARN, "The field being ordered by must appear in the target list");
+           elog(ERROR, "The field being ordered by must appear in the target list");
 
        sortcl->resdom = resdom = restarget->resdom;
        sortcl->opoid = oprid(oper(sortby->useOp,
@@ -349,7 +349,7 @@ transformSortClause(ParseState *pstate,
            }
            if (i == NIL)
            {
-               elog(WARN, "The field specified in the UNIQUE ON clause is not in the targetlist");
+               elog(ERROR, "The field specified in the UNIQUE ON clause is not in the targetlist");
            }
            s = sortlist;
            foreach(s, sortlist)
index 3f90c04fc02cbe4ba6272c525cebc48b0ec785d0..c17c3e9d48ec17802ac298722612cb0ffd48fe26 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.5 1998/01/04 04:53:50 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.6 1998/01/05 03:32:27 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -69,12 +69,12 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
 
                        uexpr = transformExpr(pstate, ai->uidx, precedence);    /* must exists */
                        if (exprType(uexpr) != INT4OID)
-                           elog(WARN, "array index expressions must be int4's");
+                           elog(ERROR, "array index expressions must be int4's");
                        if (ai->lidx != NULL)
                        {
                            lexpr = transformExpr(pstate, ai->lidx, precedence);
                            if (exprType(lexpr) != INT4OID)
-                               elog(WARN, "array index expressions must be int4's");
+                               elog(ERROR, "array index expressions must be int4's");
                        }
 #if 0
                        pfree(ai->uidx);
@@ -125,7 +125,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
                toid = param_type(paramno);
                if (!OidIsValid(toid))
                {
-                   elog(WARN, "Parameter '$%d' is out of range", paramno);
+                   elog(ERROR, "Parameter '$%d' is out of range", paramno);
                }
                param = makeNode(Param);
                param->paramkind = PARAM_NUM;
@@ -178,11 +178,11 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
                            Node       *rexpr = transformExpr(pstate, a->rexpr, precedence);
 
                            if (exprType(lexpr) != BOOLOID)
-                               elog(WARN, "left-hand side of AND is type '%s', not bool",
+                               elog(ERROR, "left-hand side of AND is type '%s', not bool",
                                    typeidTypeName(exprType(lexpr)));
 
                            if (exprType(rexpr) != BOOLOID)
-                               elog(WARN, "right-hand side of AND is type '%s', not bool",
+                               elog(ERROR, "right-hand side of AND is type '%s', not bool",
                                    typeidTypeName(exprType(rexpr)));
 
                            expr->typeOid = BOOLOID;
@@ -198,10 +198,10 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
                            Node       *rexpr = transformExpr(pstate, a->rexpr, precedence);
 
                            if (exprType(lexpr) != BOOLOID)
-                               elog(WARN, "left-hand side of OR is type '%s', not bool",
+                               elog(ERROR, "left-hand side of OR is type '%s', not bool",
                                     typeidTypeName(exprType(lexpr)));
                            if (exprType(rexpr) != BOOLOID)
-                               elog(WARN, "right-hand side of OR is type '%s', not bool",
+                               elog(ERROR, "right-hand side of OR is type '%s', not bool",
                                     typeidTypeName(exprType(rexpr)));
                            expr->typeOid = BOOLOID;
                            expr->opType = OR_EXPR;
@@ -215,7 +215,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
                            Node       *rexpr = transformExpr(pstate, a->rexpr, precedence);
 
                            if (exprType(rexpr) != BOOLOID)
-                               elog(WARN, "argument to NOT is type '%s', not bool",
+                               elog(ERROR, "argument to NOT is type '%s', not bool",
                                     typeidTypeName(exprType(rexpr)));
                            expr->typeOid = BOOLOID;
                            expr->opType = NOT_EXPR;
@@ -251,7 +251,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
            }
        default:
            /* should not reach here */
-           elog(WARN, "transformExpr: does not know how to transform node %d",
+           elog(ERROR, "transformExpr: does not know how to transform node %d",
                 nodeTag(expr));
            break;
    }
@@ -305,7 +305,7 @@ transformIdent(ParseState *pstate, Node *expr, int precedence)
    }
 
    if (result == NULL)
-       elog(WARN, "attribute '%s' not found", ident->name);
+       elog(ERROR, "attribute '%s' not found", ident->name);
 
    return result;
 }
@@ -350,7 +350,7 @@ exprType(Node *expr)
            type = UNKNOWNOID;
            break;
        default:
-           elog(WARN, "exprType: don't know how to get type for %d node",
+           elog(ERROR, "exprType: don't know how to get type for %d node",
                 nodeTag(expr));
            break;
    }
@@ -426,7 +426,7 @@ parser_typecast(Value *expr, TypeName *typename, int typlen)
            sprintf(const_string, "%ld", expr->val.ival);
            break;
        default:
-           elog(WARN,
+           elog(ERROR,
            "parser_typecast: cannot cast this expression to type '%s'",
                 typename->name);
    }
@@ -488,7 +488,7 @@ parser_typecast(Value *expr, TypeName *typename, int typlen)
            break;
 
        default:
-           elog(WARN, "unknown type %d", CInteger(lfirst(expr)));
+           elog(ERROR, "unknown type %d", CInteger(lfirst(expr)));
    }
 #endif
 
@@ -612,7 +612,7 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int typlen)
            const_string = (char *) textout((struct varlena *) const_string);
            break;
        default:
-           elog(WARN, "unknown type %u", exprType);
+           elog(ERROR, "unknown type %u", exprType);
    }
 
    if (!exprType)
index 43c78e299de626cd854fb8ccc927c4c7a648de0d..be93156e3c12271c1d76b1bae464b21330865ceb 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.4 1998/01/04 04:31:18 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.5 1998/01/05 03:32:28 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -114,7 +114,7 @@ ParseFunc(ParseState *pstate, char *funcname, List *fargs,
    {
        first_arg = lfirst(fargs);
        if (first_arg == NULL)
-           elog(WARN, "function '%s' does not allow NULL input", funcname);
+           elog(ERROR, "function '%s' does not allow NULL input", funcname);
    }
 
    /*
@@ -184,7 +184,7 @@ ParseFunc(ParseState *pstate, char *funcname, List *fargs,
                    heap_close(rd);
                }
                else
-                   elog(WARN,
+                   elog(ERROR,
                         "Type '%s' is not a relation type",
                         typeidTypeName(toid));
                argrelid = typeidTypeRelid(toid);
@@ -195,7 +195,7 @@ ParseFunc(ParseState *pstate, char *funcname, List *fargs,
                 */
                if ((get_attnum(argrelid, funcname) == InvalidAttrNumber)
                    && strcmp(funcname, "*"))
-                   elog(WARN, "Functions on sets are not yet supported");
+                   elog(ERROR, "Functions on sets are not yet supported");
            }
 
            if (retval)
@@ -286,7 +286,7 @@ ParseFunc(ParseState *pstate, char *funcname, List *fargs,
            if (exprType(pair) == UNKNOWNOID &&
                !IsA(pair, Const))
            {
-               elog(WARN, "ParseFunc: no function named '%s' that takes in an unknown type as argument #%d", funcname, nargs);
+               elog(ERROR, "ParseFunc: no function named '%s' that takes in an unknown type as argument #%d", funcname, nargs);
            }
            else
                toid = exprType(pair);
@@ -329,7 +329,7 @@ ParseFunc(ParseState *pstate, char *funcname, List *fargs,
    }
 
    if (!exists)
-       elog(WARN, "no such attribute or function '%s'", funcname);
+       elog(ERROR, "no such attribute or function '%s'", funcname);
 
    /* got it */
    funcnode = makeNode(Func);
@@ -387,7 +387,7 @@ ParseFunc(ParseState *pstate, char *funcname, List *fargs,
        Assert(length(fargs) == 1);
        seq = (Const *) lfirst(fargs);
        if (!IsA((Node *) seq, Const))
-           elog(WARN, "%s: only constant sequence names are acceptable", funcname);
+           elog(ERROR, "%s: only constant sequence names are acceptable", funcname);
        seqname = lower ((text*)DatumGetPointer(seq->constvalue));
        pfree (DatumGetPointer(seq->constvalue));
        seq->constvalue = PointerGetDatum (seqname);
@@ -396,13 +396,13 @@ ParseFunc(ParseState *pstate, char *funcname, List *fargs,
        if ((aclcheck_result = pg_aclcheck(seqrel, GetPgUserName(),
               ((funcid == SeqNextValueRegProcedure) ? ACL_WR : ACL_RD)))
            != ACLCHECK_OK)
-           elog(WARN, "%s.%s: %s",
+           elog(ERROR, "%s.%s: %s",
              seqrel, funcname, aclcheck_error_strings[aclcheck_result]);
 
        pfree(seqrel);
 
        if (funcid == SeqNextValueRegProcedure && pstate->p_in_where_clause)
-           elog(WARN, "nextval of a sequence in WHERE disallowed");
+           elog(ERROR, "nextval of a sequence in WHERE disallowed");
    }
 
    expr = makeNode(Expr);
@@ -441,7 +441,7 @@ funcid_get_rettype(Oid funcid)
                                     0, 0, 0);
 
    if (!HeapTupleIsValid(func_tuple))
-       elog(WARN, "function  %d does not exist", funcid);
+       elog(ERROR, "function  %d does not exist", funcid);
 
    funcrettype = (Oid)
        ((Form_pg_proc) GETSTRUCT(func_tuple))->prorettype;
@@ -721,7 +721,7 @@ func_get_detail(char *funcname,
        {
            tp = typeidType(oid_array[0]);
            if (typeTypeFlag(tp) == 'c')
-               elog(WARN, "no such attribute or function \"%s\"",
+               elog(ERROR, "no such attribute or function \"%s\"",
                     funcname);
        }
        func_error("func_get_detail", funcname, nargs, oid_array);
@@ -883,7 +883,7 @@ static int find_inheritors(Oid relid, Oid **supervec)
 
            /* save the type id, rather than the relation id */
            if ((rd = heap_open(qentry->sqe_relid)) == (Relation) NULL)
-               elog(WARN, "relid %d does not exist", qentry->sqe_relid);
+               elog(ERROR, "relid %d does not exist", qentry->sqe_relid);
            qentry->sqe_relid = typeTypeId(typenameType(RelationGetRelationName(rd)->data));
            heap_close(rd);
 
@@ -1029,7 +1029,7 @@ setup_tlist(char *attname, Oid relid)
 
    attno = get_attnum(relid, attname);
    if (attno < 0)
-       elog(WARN, "cannot reference attribute '%s' of tuple params/return values for functions", attname);
+       elog(ERROR, "cannot reference attribute '%s' of tuple params/return values for functions", attname);
 
    typeid = get_atttype(relid, attno);
    resnode = makeResdom(1,
@@ -1130,7 +1130,7 @@ ParseComplexProjection(ParseState *pstate,
                    }
                    else
                    {
-                       elog(WARN,
+                       elog(ERROR,
                             "Function '%s' has bad returntype %d",
                             funcname, argtype);
                    }
@@ -1200,7 +1200,7 @@ ParseComplexProjection(ParseState *pstate,
 
                }
 
-               elog(WARN, "Function '%s' has bad returntype %d",
+               elog(ERROR, "Function '%s' has bad returntype %d",
                     funcname, argtype);
                break;
            }
@@ -1267,7 +1267,7 @@ func_error(char *caller, char *funcname, int nargs, Oid *argtypes)
        ptr += strlen(ptr);
    }
 
-   elog(WARN, "%s: function %s(%s) does not exist", caller, funcname, p);
+   elog(ERROR, "%s: function %s(%s) does not exist", caller, funcname, p);
 }
 
 
index d77df5a998dbc88c11e77b42a65f2e1f1fde53b8..503e42c8250d82e9e5044a54819d3ec38586da72 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.4 1997/12/29 05:13:46 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.5 1998/01/05 03:32:29 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -126,7 +126,7 @@ disallow_setop(char *op, Type optype, Node *operand)
    {
        elog(NOTICE, "An operand to the '%s' operator returns a set of %s,",
             op, typeTypeName(optype));
-       elog(WARN, "but '%s' takes single values, not sets.",
+       elog(ERROR, "but '%s' takes single values, not sets.",
             op);
    }
 }
@@ -268,7 +268,7 @@ make_var(ParseState *pstate, char *refname, char *attrname, Oid *type_id)
 
    rd = heap_open(rte->relid);
 
-   attid = attnameAttNum(rd, attrname); /* could elog(WARN) */
+   attid = attnameAttNum(rd, attrname); /* could elog(ERROR) */
    vartypeid = attnumTypeId(rd, attid);
 
    varnode = makeVar(vnum, attid, vartypeid, vnum, attid);
@@ -311,7 +311,7 @@ make_array_ref(Node *expr,
                                     0, 0, 0);
 
    if (!HeapTupleIsValid(type_tuple))
-       elog(WARN, "make_array_ref: Cache lookup failed for type %d\n",
+       elog(ERROR, "make_array_ref: Cache lookup failed for type %d\n",
             typearray);
 
    /* get the array type struct from the type tuple */
@@ -319,7 +319,7 @@ make_array_ref(Node *expr,
 
    if (type_struct_array->typelem == InvalidOid)
    {
-       elog(WARN, "make_array_ref: type %s is not an array",
+       elog(ERROR, "make_array_ref: type %s is not an array",
             (Name) &(type_struct_array->typname.data[0]));
    }
 
@@ -328,7 +328,7 @@ make_array_ref(Node *expr,
                            ObjectIdGetDatum(type_struct_array->typelem),
                                     0, 0, 0);
    if (!HeapTupleIsValid(type_tuple))
-       elog(WARN, "make_array_ref: Cache lookup failed for type %d\n",
+       elog(ERROR, "make_array_ref: Cache lookup failed for type %d\n",
             typearray);
 
    type_struct_element = (TypeTupleForm) GETSTRUCT(type_tuple);
@@ -393,7 +393,7 @@ make_array_set(Expr *target_expr,
                                     0, 0, 0);
 
    if (!HeapTupleIsValid(type_tuple))
-       elog(WARN, "make_array_ref: Cache lookup failed for type %d\n",
+       elog(ERROR, "make_array_ref: Cache lookup failed for type %d\n",
             typearray);
 
    /* get the array type struct from the type tuple */
@@ -401,7 +401,7 @@ make_array_set(Expr *target_expr,
 
    if (type_struct_array->typelem == InvalidOid)
    {
-       elog(WARN, "make_array_ref: type %s is not an array",
+       elog(ERROR, "make_array_ref: type %s is not an array",
             (Name) &(type_struct_array->typname.data[0]));
    }
    /* get the type tuple for the element type */
@@ -410,7 +410,7 @@ make_array_set(Expr *target_expr,
                                     0, 0, 0);
 
    if (!HeapTupleIsValid(type_tuple))
-       elog(WARN, "make_array_ref: Cache lookup failed for type %d\n",
+       elog(ERROR, "make_array_ref: Cache lookup failed for type %d\n",
             typearray);
 
    type_struct_element = (TypeTupleForm) GETSTRUCT(type_tuple);
index 4fbe3f1446f0ed13b74b533cc7b8d4663a210ec6..ebd7d1cc71876710dc03ec7d3bfddf350fa95497 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.4 1998/01/01 05:44:54 thomas Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.5 1998/01/05 03:32:29 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -367,7 +367,7 @@ oper(char *op, Oid arg1, Oid arg2, bool noWarnings)
                    elog(NOTICE, "there is more than one operator %s for types", op);
                    elog(NOTICE, "%s and %s. You will have to retype this query",
                         typeTypeName(tp1), typeTypeName(tp2));
-                   elog(WARN, "using an explicit cast");
+                   elog(ERROR, "using an explicit cast");
                }
                return (NULL);
            }
@@ -473,7 +473,7 @@ right_oper(char *op, Oid arg)
        ncandidates = unary_oper_get_candidates(op, arg, &candidates, 'r');
        if (ncandidates == 0)
        {
-           elog(WARN,
+           elog(ERROR,
                 "Can't find right op: %s for type %d", op, arg);
            return (NULL);
        }
@@ -490,7 +490,7 @@ right_oper(char *op, Oid arg)
        {
            elog(NOTICE, "there is more than one right operator %s", op);
            elog(NOTICE, "you will have to retype this query");
-           elog(WARN, "using an explicit cast");
+           elog(ERROR, "using an explicit cast");
            return (NULL);
        }
    }
@@ -518,7 +518,7 @@ left_oper(char *op, Oid arg)
        ncandidates = unary_oper_get_candidates(op, arg, &candidates, 'l');
        if (ncandidates == 0)
        {
-           elog(WARN,
+           elog(ERROR,
                 "Can't find left op: %s for type %d", op, arg);
            return (NULL);
        }
@@ -535,7 +535,7 @@ left_oper(char *op, Oid arg)
        {
            elog(NOTICE, "there is more than one left operator %s", op);
            elog(NOTICE, "you will have to retype this query");
-           elog(WARN, "using an explicit cast");
+           elog(ERROR, "using an explicit cast");
            return (NULL);
        }
    }
@@ -575,7 +575,7 @@ op_error(char *op, Oid arg1, Oid arg2)
    }
    else
    {
-       elog(WARN, "left hand side of operator %s has an unknown type, probably a bad attribute name", op);
+       elog(ERROR, "left hand side of operator %s has an unknown type, probably a bad attribute name", op);
    }
 
    if (typeidIsValid(arg2))
@@ -584,7 +584,7 @@ op_error(char *op, Oid arg1, Oid arg2)
    }
    else
    {
-       elog(WARN, "right hand side of operator %s has an unknown type, probably a bad attribute name", op);
+       elog(ERROR, "right hand side of operator %s has an unknown type, probably a bad attribute name", op);
    }
 
 #if FALSE
@@ -592,10 +592,10 @@ op_error(char *op, Oid arg1, Oid arg2)
         op, typeTypeName(tp1), typeTypeName(tp2));
    elog(NOTICE, "You will either have to retype this query using an");
    elog(NOTICE, "explicit cast, or you will have to define the operator");
-   elog(WARN, "%s for %s and %s using CREATE OPERATOR",
+   elog(ERROR, "%s for %s and %s using CREATE OPERATOR",
         op, typeTypeName(tp1), typeTypeName(tp2));
 #endif
-   elog(WARN, "There is no operator '%s' for types '%s' and '%s'"
+   elog(ERROR, "There is no operator '%s' for types '%s' and '%s'"
        "\n\tYou will either have to retype this query using an explicit cast,"
        "\n\tor you will have to define the operator using CREATE OPERATOR",
        op, typeTypeName(tp1), typeTypeName(tp2));
index e2c53ed15230abf98c6187940a54ca3e919d2ee3..dc5a11a8df5a44a054f9072deb54dbc472e241af 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.4 1998/01/04 04:31:19 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.5 1998/01/05 03:32:30 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -130,7 +130,7 @@ colnameRangeTableEntry(ParseState *pstate, char *colname)
            {
                if (!pstate->p_is_insert ||
                    rte != pstate->p_target_rangetblentry)
-                   elog(WARN, "Column %s is ambiguous", colname);
+                   elog(ERROR, "Column %s is ambiguous", colname);
            }
            else
                rte_result = rte;
@@ -155,7 +155,7 @@ addRangeTableEntry(ParseState *pstate,
 
    if (pstate != NULL &&
        refnameRangeTableEntry(pstate->p_rtable, refname) != NULL)
-       elog(WARN, "Table name %s specified more than once", refname);
+       elog(ERROR, "Table name %s specified more than once", refname);
 
    rte->relname = pstrdup(relname);
    rte->refname = pstrdup(refname);
@@ -163,7 +163,7 @@ addRangeTableEntry(ParseState *pstate,
    relation = heap_openr(relname);
    if (relation == NULL)
    {
-       elog(WARN, "%s: %s",
+       elog(ERROR, "%s: %s",
             relname, aclcheck_error_strings[ACLCHECK_NO_CLASS]);
    }
 
@@ -216,7 +216,7 @@ expandAll(ParseState *pstate, char *relname, char *refname, int *this_resno)
 
    if (rdesc == NULL)
    {
-       elog(WARN, "Unable to expand all -- heap_open failed on %s",
+       elog(ERROR, "Unable to expand all -- heap_open failed on %s",
             rte->refname);
        return NIL;
    }
@@ -274,7 +274,7 @@ attnameAttNum(Relation rd, char *a)
            return (special_attr[i].code);
 
    /* on failure */
-   elog(WARN, "Relation %s does not have attribute %s",
+   elog(ERROR, "Relation %s does not have attribute %s",
         RelationGetRelationName(rd), a);
    return 0;  /* lint */
 }
@@ -319,7 +319,7 @@ attnumAttName(Relation rd, int attrno)
                return (name);
            }
        }
-       elog(WARN, "Illegal attr no %d for relation %s",
+       elog(ERROR, "Illegal attr no %d for relation %s",
             attrno, RelationGetRelationName(rd));
    }
    else if (attrno >= 1 && attrno <= RelationGetNumberOfAttributes(rd))
@@ -329,7 +329,7 @@ attnumAttName(Relation rd, int attrno)
    }
    else
    {
-       elog(WARN, "Illegal attr no %d for relation %s",
+       elog(ERROR, "Illegal attr no %d for relation %s",
             attrno, RelationGetRelationName(rd));
    }
 
@@ -380,7 +380,7 @@ handleTargetColname(ParseState *pstate, char **resname,
            pstate->p_insert_columns = lnext(pstate->p_insert_columns);
        }
        else
-           elog(WARN, "insert: more expressions than target columns");
+           elog(ERROR, "insert: more expressions than target columns");
    }
    if (pstate->p_is_insert || pstate->p_is_update)
        checkTargetTypes(pstate, *resname, refname, colname);
@@ -410,13 +410,13 @@ checkTargetTypes(ParseState *pstate, char *target_colname,
    {
        rte = colnameRangeTableEntry(pstate, colname);
        if (rte == (RangeTblEntry *) NULL)
-           elog(WARN, "attribute %s not found", colname);
+           elog(ERROR, "attribute %s not found", colname);
        refname = rte->refname;
    }
 
 /*
    if (pstate->p_is_insert && rte == pstate->p_target_rangetblentry)
-       elog(WARN, "%s not available in this context", colname);
+       elog(ERROR, "%s not available in this context", colname);
 */
    rd = heap_open(rte->relid);
 
@@ -427,13 +427,13 @@ checkTargetTypes(ParseState *pstate, char *target_colname,
    attrtype_target = attnumTypeId(pstate->p_target_relation, resdomno_target);
 
    if (attrtype_id != attrtype_target)
-       elog(WARN, "Type of %s does not match target column %s",
+       elog(ERROR, "Type of %s does not match target column %s",
             colname, target_colname);
 
    if ((attrtype_id == BPCHAROID || attrtype_id == VARCHAROID) &&
        rd->rd_att->attrs[resdomno_id - 1]->attlen !=
    pstate->p_target_relation->rd_att->attrs[resdomno_target - 1]->attlen)
-       elog(WARN, "Length of %s does not match length of target column %s",
+       elog(ERROR, "Length of %s does not match length of target column %s",
             colname, target_colname);
 
    heap_close(rd);
index a7049b0b3f73f2a0d1ba8f410e5d42b2239a68f7..eccdbda6b4e1507d6ad886fc0ba44c42f8e59853 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.4 1998/01/04 04:31:22 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.5 1998/01/05 03:32:31 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -105,7 +105,7 @@ transformTargetList(ParseState *pstate, List *targetlist)
 
                        if (exprType(expr) != UNKNOWNOID ||
                            !IsA(expr, Const))
-                           elog(WARN, "yyparse: string constant expected");
+                           elog(ERROR, "yyparse: string constant expected");
 
                        val = (char *) textout((struct varlena *)
                                           ((Const *) expr)->constvalue);
@@ -116,14 +116,14 @@ transformTargetList(ParseState *pstate, List *targetlist)
 
                            aind->uidx = transformExpr(pstate, aind->uidx, EXPR_COLUMN_FIRST);
                            if (!IsA(aind->uidx, Const))
-                               elog(WARN,
+                               elog(ERROR,
                                     "Array Index for Append should be a constant");
                            uindx[i] = ((Const *) aind->uidx)->constvalue;
                            if (aind->lidx != NULL)
                            {
                                aind->lidx = transformExpr(pstate, aind->lidx, EXPR_COLUMN_FIRST);
                                if (!IsA(aind->lidx, Const))
-                                   elog(WARN,
+                                   elog(ERROR,
                                         "Array Index for Append should be a constant");
                                lindx[i] = ((Const *) aind->lidx)->constvalue;
                            }
@@ -132,7 +132,7 @@ transformTargetList(ParseState *pstate, List *targetlist)
                                lindx[i] = 1;
                            }
                            if (lindx[i] > uindx[i])
-                               elog(WARN, "yyparse: lower index cannot be greater than upper index");
+                               elog(ERROR, "yyparse: lower index cannot be greater than upper index");
                            sprintf(str, "[%d:%d]", lindx[i], uindx[i]);
                            str += strlen(str);
                            i++;
@@ -143,7 +143,7 @@ transformTargetList(ParseState *pstate, List *targetlist)
                        resdomno = attnameAttNum(rd, res->name);
                        ndims = attnumAttNelems(rd, resdomno);
                        if (i != ndims)
-                           elog(WARN, "yyparse: array dimensions do not match");
+                           elog(ERROR, "yyparse: array dimensions do not match");
                        constval = makeNode(Value);
                        constval->type = T_String;
                        constval->val.str = save_str;
@@ -290,7 +290,7 @@ transformTargetList(ParseState *pstate, List *targetlist)
                }
            default:
                /* internal error */
-               elog(WARN,
+               elog(ERROR,
                     "internal error: do not know how to transform targetlist");
                break;
        }
@@ -334,7 +334,7 @@ make_targetlist_expr(ParseState *pstate,
    Resdom     *resnode;
 
    if (expr == NULL)
-       elog(WARN, "make_targetlist_expr: invalid use of NULL expression");
+       elog(ERROR, "make_targetlist_expr: invalid use of NULL expression");
 
    type_id = exprType(expr);
    if (type_id == InvalidOid)
@@ -417,7 +417,7 @@ make_targetlist_expr(ParseState *pstate,
            else if ((attrtype == FLOAT4OID) && (type_id == FLOAT8OID))
                lfirst(expr) = lispInteger(FLOAT4OID);
            else
-               elog(WARN, "unequal type in tlist : %s \n", colname);
+               elog(ERROR, "unequal type in tlist : %s \n", colname);
        }
 
        Input_is_string = false;
@@ -449,7 +449,7 @@ make_targetlist_expr(ParseState *pstate,
            else
            {
                /* currently, we can't handle casting of expressions */
-               elog(WARN, "parser: attribute '%s' is of type '%s' but expression is of type '%s'",
+               elog(ERROR, "parser: attribute '%s' is of type '%s' but expression is of type '%s'",
                     colname,
                     typeidTypeName(attrtype),
                     typeidTypeName(type_id));
@@ -564,7 +564,7 @@ makeTargetNames(ParseState *pstate, List *cols)
            attnameAttNum(pstate->p_target_relation, name);
            foreach(nxt, lnext(tl))
                if (!strcmp(name, ((Ident *) lfirst(nxt))->name))
-                   elog (WARN, "Attribute '%s' should be specified only once", name);
+                   elog(ERROR, "Attribute '%s' should be specified only once", name);
        }
    }
    
@@ -596,7 +596,7 @@ expandAllTables(ParseState *pstate)
 
    /* this should not happen */
    if (rtable == NULL)
-       elog(WARN, "cannot expand: null p_rtable");
+       elog(ERROR, "cannot expand: null p_rtable");
 
    /*
     * go through the range table and make a list of range table entries
index c20b042de966452089e036509bb4fa24304332a7..ef238f9fd07eb12dbf1aef837ff72fa888a88187 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/parse_type.c,v 1.2 1997/11/26 01:11:32 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/parse_type.c,v 1.3 1998/01/05 03:32:33 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -44,7 +44,7 @@ typeidTypeName(Oid id)
    if (!(tup = SearchSysCacheTuple(TYPOID, ObjectIdGetDatum(id),
                                    0, 0, 0)))
    {
-       elog(WARN, "type id lookup of %ud failed", id);
+       elog(ERROR, "type id lookup of %ud failed", id);
        return (NULL);
    }
    typetuple = (TypeTupleForm) GETSTRUCT(tup);
@@ -60,7 +60,7 @@ typeidType(Oid id)
    if (!(tup = SearchSysCacheTuple(TYPOID, ObjectIdGetDatum(id),
                                    0, 0, 0)))
    {
-       elog(WARN, "type id lookup of %ud failed", id);
+       elog(ERROR, "type id lookup of %ud failed", id);
        return (NULL);
    }
    return ((Type) tup);
@@ -74,12 +74,12 @@ typenameType(char *s)
 
    if (s == NULL)
    {
-       elog(WARN, "type(): Null type");
+       elog(ERROR, "type(): Null type");
    }
 
    if (!(tup = SearchSysCacheTuple(TYPNAME, PointerGetDatum(s), 0, 0, 0)))
    {
-       elog(WARN, "type name lookup of %s failed", s);
+       elog(ERROR, "type name lookup of %s failed", s);
    }
    return ((Type) tup);
 }
@@ -89,7 +89,7 @@ Oid
 typeTypeId(Type tp)
 {
    if (tp == NULL)
-       elog(WARN, "typeTypeId() called with NULL type struct");
+       elog(ERROR, "typeTypeId() called with NULL type struct");
    return (tp->t_oid);
 }
 
@@ -159,7 +159,7 @@ typeidRetoutfunc(Oid type_id)
                                    ObjectIdGetDatum(type_id),
                                    0, 0, 0);
    if (!HeapTupleIsValid(typeTuple))
-       elog(WARN, "typeidRetoutfunc: Invalid type - oid = %u", type_id);
+       elog(ERROR, "typeidRetoutfunc: Invalid type - oid = %u", type_id);
 
    type = (TypeTupleForm) GETSTRUCT(typeTuple);
    outfunc = type->typoutput;
@@ -177,7 +177,7 @@ typeidTypeRelid(Oid type_id)
                                    ObjectIdGetDatum(type_id),
                                    0, 0, 0);
    if (!HeapTupleIsValid(typeTuple))
-       elog(WARN, "typeidTypeRelid: Invalid type - oid = %u", type_id);
+       elog(ERROR, "typeidTypeRelid: Invalid type - oid = %u", type_id);
 
    type = (TypeTupleForm) GETSTRUCT(typeTuple);
    infunc = type->typrelid;
@@ -204,7 +204,7 @@ typeidTypElem(Oid type_id)
                                          ObjectIdGetDatum(type_id),
                                          0, 0, 0)))
    {
-       elog(WARN, "type id lookup of %u failed", type_id);
+       elog(ERROR, "type id lookup of %u failed", type_id);
    }
    type = (TypeTupleForm) GETSTRUCT(typeTuple);
 
@@ -225,7 +225,7 @@ GetArrayElementType(Oid typearray)
                                     0, 0, 0);
 
    if (!HeapTupleIsValid(type_tuple))
-       elog(WARN, "GetArrayElementType: Cache lookup failed for type %d",
+       elog(ERROR, "GetArrayElementType: Cache lookup failed for type %d",
             typearray);
 
    /* get the array type struct from the type tuple */
@@ -233,7 +233,7 @@ GetArrayElementType(Oid typearray)
 
    if (type_struct_array->typelem == InvalidOid)
    {
-       elog(WARN, "GetArrayElementType: type %s is not an array",
+       elog(ERROR, "GetArrayElementType: type %s is not an array",
             (Name) &(type_struct_array->typname.data[0]));
    }
 
@@ -252,7 +252,7 @@ typeidRetinfunc(Oid type_id)
                                    ObjectIdGetDatum(type_id),
                                    0, 0, 0);
    if (!HeapTupleIsValid(typeTuple))
-       elog(WARN, "typeidRetinfunc: Invalid type - oid = %u", type_id);
+       elog(ERROR, "typeidRetinfunc: Invalid type - oid = %u", type_id);
 
    type = (TypeTupleForm) GETSTRUCT(typeTuple);
    infunc = type->typinput;
@@ -273,7 +273,7 @@ FindDelimiter(char *typename)
                                          PointerGetDatum(typename),
                                          0, 0, 0)))
    {
-       elog(WARN, "type name lookup of %s failed", typename);
+       elog(ERROR, "type name lookup of %s failed", typename);
    }
    type = (TypeTupleForm) GETSTRUCT(typeTuple);
 
index 344fcfe3633abdb18107e4f3c490dd0f408af7dd..5fda06ea805aaa4ce18877053476842a688badbf 100644 (file)
@@ -1,7 +1,7 @@
 /* A lexical scanner generated by flex */
 
 /* Scanner skeleton version:
- * $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.5 1997/12/09 03:11:00 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.6 1998/01/05 03:32:34 momjian Exp $
  */
 
 #define FLEX_SCANNER
@@ -539,7 +539,7 @@ char *yytext;
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.5 1997/12/09 03:11:00 scrappy Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.6 1998/01/05 03:32:34 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -954,7 +954,7 @@ YY_RULE_SETUP
                    errno = 0;
                    yylval.ival = strtol((char *)literal,&endptr,2);
                    if (*endptr != '\0' || errno == ERANGE)
-                       elog(WARN,"Bad binary integer input '%s'",literal);
+                       elog(ABORT,"Bad binary integer input '%s'",literal);
                    return (ICONST);
                }
    YY_BREAK
@@ -965,7 +965,7 @@ YY_RULE_SETUP
 #line 206 "scan.l"
 {
                    if ((llen+yyleng) > (MAX_PARSE_BUFFER - 1))
-                       elog(WARN,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
+                       elog(ABORT,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
                    memcpy(literal+llen, yytext, yyleng+1);
                    llen += yyleng;
                }
@@ -997,7 +997,7 @@ YY_RULE_SETUP
                    errno = 0;
                    yylval.ival = strtol((char *)literal,&endptr,16);
                    if (*endptr != '\0' || errno == ERANGE)
-                       elog(WARN,"Bad hexadecimal integer input '%s'",literal);
+                       elog(ABORT,"Bad hexadecimal integer input '%s'",literal);
                    return (ICONST);
                }
    YY_BREAK
@@ -1026,7 +1026,7 @@ YY_RULE_SETUP
 #line 243 "scan.l"
 {
                    if ((llen+yyleng) > (MAX_PARSE_BUFFER - 1))
-                       elog(WARN,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
+                       elog(ABORT,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
                    memcpy(literal+llen, yytext, yyleng+1);
                    llen += yyleng;
                }
@@ -1036,7 +1036,7 @@ YY_RULE_SETUP
 #line 249 "scan.l"
 {
                    if ((llen+yyleng-1) > (MAX_PARSE_BUFFER - 1))
-                       elog(WARN,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
+                       elog(ABORT,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
                    memcpy(literal+llen, yytext, yyleng+1);
                    *(literal+llen) = '\'';
                    llen += yyleng;
@@ -1047,7 +1047,7 @@ YY_RULE_SETUP
 #line 257 "scan.l"
 {
                    if ((llen+yyleng-1) > (MAX_PARSE_BUFFER - 1))
-                       elog(WARN,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
+                       elog(ABORT,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
                    memcpy(literal+llen, yytext, yyleng+1);
                    llen += yyleng;
                }
@@ -1081,7 +1081,7 @@ YY_RULE_SETUP
 #line 277 "scan.l"
 {
                    if ((llen+yyleng) > (MAX_PARSE_BUFFER - 1))
-                       elog(WARN,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
+                       elog(ABORT,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
                    memcpy(literal+llen, yytext, yyleng+1);
                    llen += yyleng;
                }
@@ -1159,7 +1159,7 @@ YY_RULE_SETUP
                    errno = 0;
                    yylval.ival = strtol((char *)yytext,&endptr,10);
                    if (*endptr != '\0' || errno == ERANGE)
-                       elog(WARN,"Bad integer input '%s'",yytext);
+                       elog(ABORT,"Bad integer input '%s'",yytext);
                    return (ICONST);
                }
    YY_BREAK
@@ -1173,7 +1173,7 @@ YY_RULE_SETUP
                    errno = 0;
                    yylval.dval = strtod(((char *)yytext),&endptr);
                    if (*endptr != '\0' || errno == ERANGE)
-                   elog(WARN,"Bad float8 input '%s'",yytext);
+                   elog(ABORT,"Bad float8 input '%s'",yytext);
                    CheckFloat8Val(yylval.dval);
                    return (FCONST);
                }
@@ -1187,7 +1187,7 @@ YY_RULE_SETUP
                    errno = 0;
                    yylval.ival = strtol((char *)yytext,&endptr,10);
                    if (*endptr != '\0' || errno == ERANGE)
-                       elog(WARN,"Bad integer input '%s'",yytext);
+                       elog(ABORT,"Bad integer input '%s'",yytext);
                    return (ICONST);
                }
    YY_BREAK
@@ -1200,7 +1200,7 @@ YY_RULE_SETUP
                    errno = 0;
                    yylval.dval = strtod((char *)yytext,&endptr);
                    if (*endptr != '\0' || errno == ERANGE)
-                       elog(WARN,"Bad float input '%s'",yytext);
+                       elog(ABORT,"Bad float input '%s'",yytext);
                    CheckFloat8Val(yylval.dval);
                    return (FCONST);
                }
@@ -2133,7 +2133,7 @@ int main()
 
 void yyerror(char message[])
 {
-   elog(WARN, "parser: %s at or near \"%s\"", message, yytext);
+   elog(ABORT, "parser: %s at or near \"%s\"", message, yytext);
 }
 
 int yywrap()
index 9e300ba111fd018dc1a58ae1e9c0b7f68cbf58b9..1617472fbc342e0e302fb92bf40d29691bd37034 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.32 1997/12/05 01:12:53 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.33 1998/01/05 03:32:35 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -199,13 +199,13 @@ other         .
                    errno = 0;
                    yylval.ival = strtol((char *)literal,&endptr,2);
                    if (*endptr != '\0' || errno == ERANGE)
-                       elog(WARN,"Bad binary integer input '%s'",literal);
+                       elog(ABORT,"Bad binary integer input '%s'",literal);
                    return (ICONST);
                }
 {xhinside} |
 {xbinside} {
                    if ((llen+yyleng) > (MAX_PARSE_BUFFER - 1))
-                       elog(WARN,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
+                       elog(ABORT,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
                    memcpy(literal+llen, yytext, yyleng+1);
                    llen += yyleng;
                }
@@ -225,7 +225,7 @@ other           .
                    errno = 0;
                    yylval.ival = strtol((char *)literal,&endptr,16);
                    if (*endptr != '\0' || errno == ERANGE)
-                       elog(WARN,"Bad hexadecimal integer input '%s'",literal);
+                       elog(ABORT,"Bad hexadecimal integer input '%s'",literal);
                    return (ICONST);
                }
 
@@ -242,13 +242,13 @@ other         .
 {xqdouble} |
 {xqinside} {
                    if ((llen+yyleng) > (MAX_PARSE_BUFFER - 1))
-                       elog(WARN,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
+                       elog(ABORT,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
                    memcpy(literal+llen, yytext, yyleng+1);
                    llen += yyleng;
                }
 {xqembedded} {
                    if ((llen+yyleng-1) > (MAX_PARSE_BUFFER - 1))
-                       elog(WARN,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
+                       elog(ABORT,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
                    memcpy(literal+llen, yytext, yyleng+1);
                    *(literal+llen) = '\'';
                    llen += yyleng;
@@ -256,7 +256,7 @@ other           .
 
 {xqliteral} {
                    if ((llen+yyleng-1) > (MAX_PARSE_BUFFER - 1))
-                       elog(WARN,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
+                       elog(ABORT,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
                    memcpy(literal+llen, yytext, yyleng+1);
                    llen += yyleng;
                }
@@ -276,7 +276,7 @@ other           .
                }
 {xdinside} {
                    if ((llen+yyleng) > (MAX_PARSE_BUFFER - 1))
-                       elog(WARN,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
+                       elog(ABORT,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
                    memcpy(literal+llen, yytext, yyleng+1);
                    llen += yyleng;
                }
@@ -318,7 +318,7 @@ other           .
                    errno = 0;
                    yylval.ival = strtol((char *)yytext,&endptr,10);
                    if (*endptr != '\0' || errno == ERANGE)
-                       elog(WARN,"Bad integer input '%s'",yytext);
+                       elog(ABORT,"Bad integer input '%s'",yytext);
                    return (ICONST);
                }
 {real}/{space}*-{number} {
@@ -328,7 +328,7 @@ other           .
                    errno = 0;
                    yylval.dval = strtod(((char *)yytext),&endptr);
                    if (*endptr != '\0' || errno == ERANGE)
-                   elog(WARN,"Bad float8 input '%s'",yytext);
+                   elog(ABORT,"Bad float8 input '%s'",yytext);
                    CheckFloat8Val(yylval.dval);
                    return (FCONST);
                }
@@ -338,7 +338,7 @@ other           .
                    errno = 0;
                    yylval.ival = strtol((char *)yytext,&endptr,10);
                    if (*endptr != '\0' || errno == ERANGE)
-                       elog(WARN,"Bad integer input '%s'",yytext);
+                       elog(ABORT,"Bad integer input '%s'",yytext);
                    return (ICONST);
                }
 {real}         {
@@ -347,7 +347,7 @@ other           .
                    errno = 0;
                    yylval.dval = strtod((char *)yytext,&endptr);
                    if (*endptr != '\0' || errno == ERANGE)
-                       elog(WARN,"Bad float input '%s'",yytext);
+                       elog(ABORT,"Bad float input '%s'",yytext);
                    CheckFloat8Val(yylval.dval);
                    return (FCONST);
                }
@@ -377,7 +377,7 @@ other           .
 
 void yyerror(char message[])
 {
-   elog(WARN, "parser: %s at or near \"%s\"", message, yytext);
+   elog(ABORT, "parser: %s at or near \"%s\"", message, yytext);
 }
 
 int yywrap()
index 2bf33c58fbe2d6c2085b6d8f6e780f6f30099202..0be13945b47597023b6e401b6b20c6d24e2b88b5 100644 (file)
@@ -10,7 +10,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/port/dynloader/linux.c,v 1.4 1998/01/02 03:40:04 scrappy Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/port/dynloader/linux.c,v 1.5 1998/01/05 03:32:39 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -32,7 +32,7 @@ void     *
 pg_dlopen(char *filename)
 {
 #ifndef HAVE_DLD_H
-   elog(WARN, "dynamic load not supported");
+   elog(ABORT, "dynamic load not supported");
    return (NULL);
 #else
    static int  dl_initialized = 0;
index 9256214255690aa4a8c62fa55e5709f59dfe5ce6..3dccd1bf50f924ae51c6aae29e9fc6fe36c57265 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.9 1997/12/11 17:36:38 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.10 1998/01/05 03:32:44 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -98,7 +98,7 @@ InsertRule(char *rulname,
    eventrel = heap_openr(evobj);
    if (eventrel == NULL)
    {
-       elog(WARN, "rules cannot be defined on relations not in schema");
+       elog(ABORT, "rules cannot be defined on relations not in schema");
    }
    eventrel_oid = RelationGetRelationId(eventrel);
 
@@ -118,7 +118,7 @@ InsertRule(char *rulname,
        evqual = "nil";
 
    if (IsDefinedRewriteRule(rulname))
-       elog(WARN, "Attempt to insert rule '%s' failed: already exists",
+       elog(ABORT, "Attempt to insert rule '%s' failed: already exists",
             rulname);
    strcpyq(actionbuf, actiontree);
    strcpyq(qualbuf, evqual);
@@ -130,7 +130,7 @@ InsertRule(char *rulname,
    if (strlen(template) + strlen(rulname) + strlen(actionbuf) +
        strlen(qualbuf) + 20 /* fudge fac */ > RULE_PLAN_SIZE)
    {
-       elog(WARN, "DefineQueryRewrite: rule plan string too big.");
+       elog(ABORT, "DefineQueryRewrite: rule plan string too big.");
    }
    sprintf(rulebuf, template,
            rulname, evtype, eventrel_oid, evslot_index, actionbuf,
@@ -156,12 +156,12 @@ ValidateRule(int event_type,
    if (((event_type == CMD_INSERT) || (event_type == CMD_DELETE)) &&
        eslot_string)
    {
-       elog(WARN,
+       elog(ABORT,
        "rules not allowed for insert or delete events to an attribute");
    }
 
    if (event_qual && !*action && is_instead)
-       elog(WARN,
+       elog(ABORT,
        "event_quals on 'instead nothing' rules not currently supported");
 
 #if 0
@@ -211,7 +211,7 @@ DefineQueryRewrite(RuleStmt *stmt)
    event_relation = heap_openr(event_obj->relname);
    if (event_relation == NULL)
    {
-       elog(WARN, "virtual relations not supported yet");
+       elog(ABORT, "virtual relations not supported yet");
    }
    ev_relid = RelationGetRelationId(event_relation);
 
@@ -265,7 +265,7 @@ DefineQueryRewrite(RuleStmt *stmt)
 
        /* what is the max size of type text? XXX -- glass */
        if (length(action) > 15)
-           elog(WARN, "max # of actions exceeded");
+           elog(ABORT, "max # of actions exceeded");
        prs2_addToRelation(ev_relid, ruleId, event_type, event_attno,
                           is_instead, event_qual, action);
    }
index 1f6bd86343cc9c57835cee1b301c5d912fda15b6..0f9d3f3762e03136d1b0e4a4c12804a27df14e87 100644 (file)
@@ -6,7 +6,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.7 1998/01/04 04:31:28 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteHandler.c,v 1.8 1998/01/05 03:32:45 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -647,7 +647,7 @@ deepRewriteQuery(Query *parsetree)
 
    if (++numQueryRewriteInvoked > REWRITE_INVOKE_MAX)
    {
-       elog(WARN, "query rewritten %d times, may contain cycles",
+       elog(ABORT, "query rewritten %d times, may contain cycles",
             numQueryRewriteInvoked - 1);
    }
 
index c73dc261c0af57639f8f086e2a810d79933539f6..0da9dab3314bfca382c26539e5b7819c7c1353ce 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteRemove.c,v 1.7 1997/11/24 05:08:40 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteRemove.c,v 1.8 1998/01/05 03:32:46 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -39,13 +39,13 @@ RewriteGetRuleEventRel(char *rulename)
    htp = SearchSysCacheTuple(REWRITENAME, PointerGetDatum(rulename),
                              0, 0, 0);
    if (!HeapTupleIsValid(htp))
-       elog(WARN, "RewriteGetRuleEventRel: rule \"%s\" not found",
+       elog(ABORT, "RewriteGetRuleEventRel: rule \"%s\" not found",
             rulename);
    eventrel = ((Form_pg_rewrite) GETSTRUCT(htp))->ev_class;
    htp = SearchSysCacheTuple(RELOID, PointerGetDatum(eventrel),
                              0, 0, 0);
    if (!HeapTupleIsValid(htp))
-       elog(WARN, "RewriteGetRuleEventRel: class %d not found",
+       elog(ABORT, "RewriteGetRuleEventRel: class %d not found",
             eventrel);
    return ((Form_pg_class) GETSTRUCT(htp))->relname.data;
 }
@@ -99,7 +99,7 @@ RemoveRewriteRule(char *ruleName)
    if (!HeapTupleIsValid(tuple))
    {
        heap_close(RewriteRelation);
-       elog(WARN, "No rule with name = '%s' was found.\n", ruleName);
+       elog(ABORT, "No rule with name = '%s' was found.\n", ruleName);
    }
 
    /*
@@ -116,7 +116,7 @@ RemoveRewriteRule(char *ruleName)
    if (isNull)
    {
        /* XXX strange!!! */
-       elog(WARN, "RemoveRewriteRule: null event target relation!");
+       elog(ABORT, "RemoveRewriteRule: null event target relation!");
    }
    eventRelationOid = DatumGetObjectId(eventRelationOidDatum);
 
index 814f84271b04d8d5bd679074de7e3aadaf1f4de1..450b46192755ca13d48503678939c80dddfd71c6 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteSupport.c,v 1.12 1997/11/20 23:22:39 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteSupport.c,v 1.13 1998/01/05 03:32:47 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -56,7 +56,7 @@ RuleIdGetActionInfo(Oid ruleoid, bool *instead_flag, Query **parseTrees)
                                    ObjectIdGetDatum(ruleoid),
                                    0, 0, 0);
    if (ruletuple == NULL)
-       elog(WARN, "rule %u isn't in rewrite system relation", ruleoid);
+       elog(ABORT, "rule %u isn't in rewrite system relation", ruleoid);
 
    ruleaction = (char *)heap_getattr(ruletuple,
                                      InvalidBuffer,
@@ -72,7 +72,7 @@ RuleIdGetActionInfo(Oid ruleoid, bool *instead_flag, Query **parseTrees)
 
    if (action_is_null || instead_is_null)
    {
-       elog(WARN, "internal error: rewrite rule not properly set up");
+       elog(ABORT, "internal error: rewrite rule not properly set up");
    }
 
    ruleaction = textout((struct varlena *) ruleaction);
index 3ede3dcf59c03d9f6c437b9d197cecedbb9fadbb..98b2eeaa1c8d98c295f9b4acc2475956e7dde511 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.15 1997/11/02 15:25:36 vadim Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.16 1998/01/05 03:32:51 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -155,10 +155,10 @@ InitBufferPool(IPCKey key)
     */
    if (sizeof(struct sbufdesc) != PADDED_SBUFDESC_SIZE ||
        sizeof(struct sbufdesc_unpadded) > PADDED_SBUFDESC_SIZE)
-       elog(WARN, "Internal error:  sbufdesc does not have the proper size, "
+       elog(ABORT, "Internal error:  sbufdesc does not have the proper size, "
             "contact the Postgres developers");
    if (sizeof(struct sbufdesc_unpadded) <= PADDED_SBUFDESC_SIZE / 2)
-       elog(WARN, "Internal error:  sbufdesc is greatly over-sized, "
+       elog(ABORT, "Internal error:  sbufdesc is greatly over-sized, "
             "contact the Postgres developers");
 
    Data_Descriptors = NBuffers;
index 7fa9ab380e6777299cedb4781c058e0474a39c24..3d06262a1db5c2a2f9babeceb498e5cd54c3d254 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.8 1997/09/08 21:46:46 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.9 1998/01/05 03:32:52 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -87,7 +87,7 @@ BufTableLookup(BufferTag *tagPtr)
 
    if (!result)
    {
-       elog(WARN, "BufTableLookup: BufferLookup table corrupted");
+       elog(ABORT, "BufTableLookup: BufferLookup table corrupted");
        return (NULL);
    }
    if (!found)
@@ -122,7 +122,7 @@ BufTableDelete(BufferDesc *buf)
 
    if (!(result && found))
    {
-       elog(WARN, "BufTableDelete: BufferLookup table corrupted");
+       elog(ABORT, "BufTableDelete: BufferLookup table corrupted");
        return (FALSE);
    }
 
@@ -145,14 +145,14 @@ BufTableInsert(BufferDesc *buf)
    if (!result)
    {
        Assert(0);
-       elog(WARN, "BufTableInsert: BufferLookup table corrupted");
+       elog(ABORT, "BufTableInsert: BufferLookup table corrupted");
        return (FALSE);
    }
    /* found something else in the table ! */
    if (found)
    {
        Assert(0);
-       elog(WARN, "BufTableInsert: BufferLookup table corrupted");
+       elog(ABORT, "BufTableInsert: BufferLookup table corrupted");
        return (FALSE);
    }
 
index e81a8d1dffe13cb848a365f711a33d0c74193192..fde40b528dc935d546ec27820c84a2343fed04f5 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.29 1997/11/21 18:11:04 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.30 1998/01/05 03:32:54 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -444,7 +444,7 @@ BufferAlloc(Relation reln,
 
        /*
         * But it can return buf == NULL if we are in aborting transaction
-        * now and so elog(WARN,...) in GetFreeBuffer will not abort
+        * now and so elog(ABORT,...) in GetFreeBuffer will not abort
         * again.
         */
        if (buf == NULL)
@@ -834,7 +834,7 @@ FlushBuffer(Buffer buffer, bool release)
 
    if (status == SM_FAIL)
    {
-       elog(WARN, "FlushBuffer: cannot flush block %u of the relation %s",
+       elog(ABORT, "FlushBuffer: cannot flush block %u of the relation %s",
             bufHdr->tag.blockNum, bufHdr->sb_relname);
        return (STATUS_ERROR);
    }
@@ -1009,7 +1009,7 @@ BufferSync()
                    UnpinBuffer(bufHdr);
                    if (bufHdr->flags & BM_IO_ERROR)
                    {
-                       elog(WARN, "BufferSync: write error %u for %s",
+                       elog(ABORT, "BufferSync: write error %u for %s",
                             bufHdr->tag.blockNum, bufHdr->sb_relname);
                    }
                    if (reln != (Relation) NULL)
@@ -1054,7 +1054,7 @@ BufferSync()
                if (status == SM_FAIL)
                {
                    bufHdr->flags |= BM_IO_ERROR;
-                   elog(WARN, "BufferSync: cannot write %u for %s",
+                   elog(ABORT, "BufferSync: cannot write %u for %s",
                         bufHdr->tag.blockNum, bufHdr->sb_relname);
                }
                BufferFlushCount++;
index b2f9fd7e9ae223fc0142fe0bacf2613cc7ede0d4..5dbf4fab1e6ccc1233fadb70e372e6717331c032 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.7 1997/09/08 20:56:47 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.8 1998/01/05 03:32:56 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -189,7 +189,7 @@ GetFreeBuffer()
    {
 
        /* queue is empty. All buffers in the buffer pool are pinned. */
-       elog(WARN, "out of free buffers: time to abort !\n");
+       elog(ABORT, "out of free buffers: time to abort !\n");
        return (NULL);
    }
    buf = &(BufferDescriptors[SharedFreeList->freeNext]);
index b7a8bba37a4c8151489e2193c8a63f22fadb06a6..4e8ee8fd29cee1a25c401120f6e0a1e567628bb1 100644 (file)
@@ -15,7 +15,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/buffer/localbuf.c,v 1.14 1997/11/21 18:11:07 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/buffer/localbuf.c,v 1.15 1998/01/05 03:32:58 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -110,7 +110,7 @@ LocalBufferAlloc(Relation reln, BlockNumber blockNum, bool *foundPtr)
        }
    }
    if (bufHdr == NULL)
-       elog(WARN, "no empty local buffer.");
+       elog(ABORT, "no empty local buffer.");
 
    /*
     * this buffer is not referenced but it might still be dirty (the last
index c64b7c01096472375796fcafc3bf478038c8bb71..65a8bed408db65ac226a67c68855689d8d58a611 100644 (file)
@@ -6,7 +6,7 @@
  * Copyright (c) 1994, Regents of the University of California
  *
  * IDENTIFICATION
- *   $Id: fd.c,v 1.27 1997/11/07 06:38:15 thomas Exp $
+ *   $Id: fd.c,v 1.28 1998/01/05 03:33:00 momjian Exp $
  *
  * NOTES:
  *
@@ -586,7 +586,7 @@ tryAgain:
 
    if (fileName == NULL)
    {
-       elog(WARN, "fileNameOpenFile: NULL fname");
+       elog(ABORT, "fileNameOpenFile: NULL fname");
    }
    vfdP->fileName = malloc(strlen(fileName) + 1);
    strcpy(vfdP->fileName, fileName);
@@ -763,7 +763,7 @@ FileSeek(File file, long offset, int whence)
                    lseek(VfdCache[file].fd, offset, whence);
                return returnCode;
            default:
-               elog(WARN, "FileSeek: invalid whence: %d", whence);
+               elog(ABORT, "FileSeek: invalid whence: %d", whence);
                break;
        }
    }
index adb357193ba65f8b2a5f9ee4f1b833b7c6e64728..1d08318007c2a5824ebd159816f70e89137e1376 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.16 1997/09/18 20:21:26 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.17 1998/01/05 03:33:04 momjian Exp $
  *
  * NOTES
  *
@@ -89,7 +89,7 @@ PrivateMemoryCreate(IpcMemoryKey memKey,
    IpcPrivateMem[memid].id = memid;
    IpcPrivateMem[memid].memptr = malloc(size);
    if (IpcPrivateMem[memid].memptr == NULL)
-       elog(WARN, "PrivateMemoryCreate: not enough memory to malloc");
+       elog(ABORT, "PrivateMemoryCreate: not enough memory to malloc");
    MemSet(IpcPrivateMem[memid].memptr, 0, size);       /* XXX PURIFY */
 
    return (memid++);
index 1303c1bdef9735b53cf203782884b8029b03b1f2..dca616d5775374254a6fb9b9d0c9f0e46cb0847b 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.14 1997/09/18 20:21:30 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.15 1998/01/05 03:33:06 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -418,7 +418,7 @@ ShmemPIDLookup(int pid, SHMEM_OFFSET *locationPtr)
    {
 
        SpinRelease(BindingLock);
-       elog(WARN, "ShmemInitPID: BindingTable corrupted");
+       elog(ABORT, "ShmemInitPID: BindingTable corrupted");
        return (FALSE);
 
    }
@@ -469,7 +469,7 @@ ShmemPIDDestroy(int pid)
    if (!result)
    {
 
-       elog(WARN, "ShmemPIDDestroy: PID table corrupted");
+       elog(ABORT, "ShmemPIDDestroy: PID table corrupted");
        return (INVALID_OFFSET);
 
    }
@@ -555,7 +555,7 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
 
        SpinRelease(BindingLock);
 
-       elog(WARN, "ShmemInitStruct: Binding Table corrupted");
+       elog(ABORT, "ShmemInitStruct: Binding Table corrupted");
        return (NULL);
 
    }
@@ -640,6 +640,6 @@ TransactionIdIsInProgress(TransactionId xid)
    }
 
    SpinRelease(BindingLock);
-   elog(WARN, "TransactionIdIsInProgress: BindingTable corrupted");
+   elog(ABORT, "TransactionIdIsInProgress: BindingTable corrupted");
    return (false);
 }
index 2b961e01b4a3544b40b29ad12971b1ffb4bc63ef..06eaa4473a3ab415e87a439ada9d6ce825bf28cd 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.24 1997/11/28 17:27:50 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.25 1998/01/05 03:33:09 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -111,14 +111,14 @@ inv_create(int flags)
    if (SearchSysCacheTuple(RELNAME, PointerGetDatum(objname),
                            0, 0, 0) != NULL)
    {
-       elog(WARN,
+       elog(ABORT,
          "internal error: %s already exists -- cannot create large obj",
             objname);
    }
    if (SearchSysCacheTuple(RELNAME, PointerGetDatum(indname),
                            0, 0, 0) != NULL)
    {
-       elog(WARN,
+       elog(ABORT,
          "internal error: %s already exists -- cannot create large obj",
             indname);
    }
@@ -147,7 +147,7 @@ inv_create(int flags)
 
    if (!RelationIsValid(r))
    {
-       elog(WARN, "cannot create large object on %s under inversion",
+       elog(ABORT, "cannot create large object on %s under inversion",
             smgrout(DEFAULT_SMGR));
    }
 
@@ -172,7 +172,7 @@ inv_create(int flags)
 
    if (!RelationIsValid(indr))
    {
-       elog(WARN, "cannot create index for large obj on %s under inversion",
+       elog(ABORT, "cannot create index for large obj on %s under inversion",
             smgrout(DEFAULT_SMGR));
    }
 
index c54ff59e03b1998dd5b624f5dc35a97468db206c..c9481d09f86e98bcccdd176faedecb287af40b39 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.9 1997/11/24 05:08:43 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.10 1998/01/05 03:33:16 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -434,7 +434,7 @@ RelationUnsetLockForRead(Relation relation)
     */
    if (!LockInfoIsValid(linfo))
    {
-       elog(WARN,
+       elog(ABORT,
             "Releasing a lock on %s with invalid lock information",
             RelationGetRelationName(relation));
    }
@@ -527,7 +527,7 @@ RelationUnsetLockForWrite(Relation relation)
 
    if (!LockInfoIsValid(linfo))
    {
-       elog(WARN,
+       elog(ABORT,
             "Releasing a lock on %s with invalid lock information",
             RelationGetRelationName(relation));
    }
@@ -769,7 +769,7 @@ RelationUnsetSingleWLockPage(Relation relation,
        return;
 
    if (!LockInfoIsValid(relation->lockInfo))
-       elog(WARN,
+       elog(ABORT,
             "Releasing a lock on %s with invalid lock information",
             RelationGetRelationName(relation));
 
@@ -816,7 +816,7 @@ RelationUnsetSingleRLockPage(Relation relation,
        return;
 
    if (!LockInfoIsValid(relation->lockInfo))
-       elog(WARN,
+       elog(ABORT,
             "Releasing a lock on %s with invalid lock information",
             RelationGetRelationName(relation));
 
index 116f431e3dae91fb551675c8cf5e6550ab32bbae..9d41201dd4f9c057dd73def45253beb3f036f68b 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.16 1997/09/18 20:21:35 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.17 1998/01/05 03:33:22 momjian Exp $
  *
  * NOTES
  *   Outside modules can create a lock table and acquire/release
@@ -802,7 +802,7 @@ WaitOnLock(LOCKTAB *ltable, LockTableId tableId, LOCK *lock, LOCKT lockt)
        lock->holders[lockt]--;
        LOCK_DUMP_AUX("WaitOnLock: aborting on lock", lock, lockt);
        SpinRelease(ltable->ctl->masterLock);
-       elog(WARN, "WaitOnLock: error on wakeup - Aborting this transaction");
+       elog(ABORT, "WaitOnLock: error on wakeup - Aborting this transaction");
    }
 
    LOCK_DUMP_AUX("WaitOnLock: wakeup on lock", lock, lockt);
@@ -887,7 +887,7 @@ LockRelease(LockTableId tableId, LOCKTAG *lockName, LOCKT lockt)
 #endif
 
    /*
-    * let the caller print its own error message, too. Do not elog(WARN).
+    * let the caller print its own error message, too. Do not elog(ABORT).
     */
    if (!lock)
    {
index 6862111e2d3c3f7d7870cf4daa7734e765d5407b..5786cadd64eb7546fac63bacfba45bd335af55e2 100644 (file)
@@ -12,7 +12,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.8 1997/09/18 20:21:38 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.9 1998/01/05 03:33:25 momjian Exp $
  *
  * NOTES:
  *  (1) The lock.c module assumes that the caller here is doing
@@ -100,14 +100,14 @@ InitMultiLevelLockm()
    MultiTableId = tableId;
    if (!(MultiTableId))
    {
-       elog(WARN, "InitMultiLockm: couldnt initialize lock table");
+       elog(ABORT, "InitMultiLockm: couldnt initialize lock table");
    }
    /* -----------------------
     * No short term lock table for now.  -Jeff 15 July 1991
     *
     * ShortTermTableId = LockTabRename(tableId);
     * if (! (ShortTermTableId)) {
-    *   elog(WARN,"InitMultiLockm: couldnt rename lock table");
+    *   elog(ABORT,"InitMultiLockm: couldnt rename lock table");
     * }
     * -----------------------
     */
@@ -237,7 +237,7 @@ MultiAcquire(LockTableId tableId,
            locks[2] = lockt;
            break;
        default:
-           elog(WARN, "MultiAcquire: bad lock level");
+           elog(ABORT, "MultiAcquire: bad lock level");
            return (FALSE);
    }
 
@@ -390,7 +390,7 @@ MultiRelease(LockTableId tableId,
            locks[2] = lockt;
            break;
        default:
-           elog(WARN, "MultiRelease: bad lockt");
+           elog(ABORT, "MultiRelease: bad lockt");
    }
 
    /*
@@ -435,7 +435,7 @@ MultiRelease(LockTableId tableId,
            status = LockRelease(tableId, tmpTag, locks[i]);
            if (!status)
            {
-               elog(WARN, "MultiRelease: couldn't release after error");
+               elog(ABORT, "MultiRelease: couldn't release after error");
            }
        }
    }
index d9d0c46b656cd360ebc275338afbc65d3e15b390..f5baaa3eb9db6c38c9b2ec2266671605cf8e4b42 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.23 1997/10/30 17:23:59 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.24 1998/01/05 03:33:26 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -46,7 +46,7 @@
  *     This is so that we can support more backends. (system-wide semaphore
  *     sets run out pretty fast.)                -ay 4/95
  *
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.23 1997/10/30 17:23:59 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.24 1998/01/05 03:33:26 momjian Exp $
  */
 #include 
 #include 
@@ -163,13 +163,13 @@ InitProcess(IPCKey key)
    if (!found)
    {
        /* this should not happen. InitProcGlobal() is called before this. */
-       elog(WARN, "InitProcess: Proc Header uninitialized");
+       elog(ABORT, "InitProcess: Proc Header uninitialized");
    }
 
    if (MyProc != NULL)
    {
        SpinRelease(ProcStructLock);
-       elog(WARN, "ProcInit: you already exist");
+       elog(ABORT, "ProcInit: you already exist");
        return;
    }
 
@@ -803,7 +803,7 @@ ProcGetNewSemKeyAndNum(IPCKey *key, int *semNum)
    }
 
    /* if we reach here, all the semaphores are in use. */
-   elog(WARN, "InitProc: cannot allocate a free semaphore");
+   elog(ABORT, "InitProc: cannot allocate a free semaphore");
 }
 
 /*
index f54eefd84e8fbb79a11b30f8516554ae557e94c9..86fa599c8e3ee3a3dc4cbc8ab4ce23abf5e309f9 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.11 1997/09/18 20:21:41 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.12 1998/01/05 03:33:29 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -134,7 +134,7 @@ PageAddItem(Page page,
            if (((*itemId).lp_flags & LP_USED) ||
                ((*itemId).lp_len != 0))
            {
-               elog(WARN, "PageAddItem: tried overwrite of used ItemId");
+               elog(ABORT, "PageAddItem: tried overwrite of used ItemId");
                return (InvalidOffsetNumber);
            }
        }
index eaee63f2d488d174368fbb4c07d075188143eafa..ff852dc0039f3d64f4343a4cb2254ef1b11d257a 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.24 1997/11/07 06:38:19 thomas Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.25 1998/01/05 03:33:32 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -568,7 +568,7 @@ mdnblocks(Relation reln)
            {
                v->mdfd_chain = _mdfd_openseg(reln, segno, O_CREAT);
                if (v->mdfd_chain == (MdfdVec *) NULL)
-                   elog(WARN, "cannot count blocks for %.16s -- open failed",
+                   elog(ABORT, "cannot count blocks for %.16s -- open failed",
                         RelationGetRelationName(reln));
            }
 
@@ -808,7 +808,7 @@ _mdfd_getseg(Relation reln, int blkno, int oflag)
    if (fd < 0)
    {
        if ((fd = mdopen(reln)) < 0)
-           elog(WARN, "cannot open relation %.16s",
+           elog(ABORT, "cannot open relation %.16s",
                 RelationGetRelationName(reln));
        reln->rd_fd = fd;
    }
@@ -823,7 +823,7 @@ _mdfd_getseg(Relation reln, int blkno, int oflag)
            v->mdfd_chain = _mdfd_openseg(reln, i, oflag);
 
            if (v->mdfd_chain == (MdfdVec *) NULL)
-               elog(WARN, "cannot open segment %d of relation %.16s",
+               elog(ABORT, "cannot open segment %d of relation %.16s",
                     i, RelationGetRelationName(reln));
        }
        v = v->mdfd_chain;
index cda65c57f26f77c8c1046f8351602da6ed73aed3..69be719f2415a660fef2e8c59ef2d1ec26264f85 100644 (file)
@@ -10,7 +10,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.11 1997/09/08 21:47:38 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.12 1998/01/05 03:33:33 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -132,7 +132,7 @@ smgrcreate(int16 which, Relation reln)
    int         fd;
 
    if ((fd = (*(smgrsw[which].smgr_create)) (reln)) < 0)
-       elog(WARN, "cannot open %s",
+       elog(ABORT, "cannot open %s",
             &(reln->rd_rel->relname.data[0]));
 
    return (fd);
@@ -149,7 +149,7 @@ smgrunlink(int16 which, Relation reln)
    int         status;
 
    if ((status = (*(smgrsw[which].smgr_unlink)) (reln)) == SM_FAIL)
-       elog(WARN, "cannot unlink %s",
+       elog(ABORT, "cannot unlink %s",
             &(reln->rd_rel->relname.data[0]));
 
    return (status);
@@ -169,7 +169,7 @@ smgrextend(int16 which, Relation reln, char *buffer)
    status = (*(smgrsw[which].smgr_extend)) (reln, buffer);
 
    if (status == SM_FAIL)
-       elog(WARN, "%s: cannot extend",
+       elog(ABORT, "%s: cannot extend",
             &(reln->rd_rel->relname.data[0]));
 
    return (status);
@@ -187,7 +187,7 @@ smgropen(int16 which, Relation reln)
    int         fd;
 
    if ((fd = (*(smgrsw[which].smgr_open)) (reln)) < 0)
-       elog(WARN, "cannot open %s",
+       elog(ABORT, "cannot open %s",
             &(reln->rd_rel->relname.data[0]));
 
    return (fd);
@@ -209,7 +209,7 @@ int
 smgrclose(int16 which, Relation reln)
 {
    if ((*(smgrsw[which].smgr_close)) (reln) == SM_FAIL)
-       elog(WARN, "cannot close %s",
+       elog(ABORT, "cannot close %s",
             &(reln->rd_rel->relname.data[0]));
 
    return (SM_SUCCESS);
@@ -233,7 +233,7 @@ smgrread(int16 which, Relation reln, BlockNumber blocknum, char *buffer)
    status = (*(smgrsw[which].smgr_read)) (reln, blocknum, buffer);
 
    if (status == SM_FAIL)
-       elog(WARN, "cannot read block %d of %s",
+       elog(ABORT, "cannot read block %d of %s",
             blocknum, &(reln->rd_rel->relname.data[0]));
 
    return (status);
@@ -255,7 +255,7 @@ smgrwrite(int16 which, Relation reln, BlockNumber blocknum, char *buffer)
    status = (*(smgrsw[which].smgr_write)) (reln, blocknum, buffer);
 
    if (status == SM_FAIL)
-       elog(WARN, "cannot write block %d of %s",
+       elog(ABORT, "cannot write block %d of %s",
             blocknum, &(reln->rd_rel->relname.data[0]));
 
    return (status);
@@ -272,7 +272,7 @@ smgrflush(int16 which, Relation reln, BlockNumber blocknum, char *buffer)
    status = (*(smgrsw[which].smgr_flush)) (reln, blocknum, buffer);
 
    if (status == SM_FAIL)
-       elog(WARN, "cannot flush block %d of %s to stable store",
+       elog(ABORT, "cannot flush block %d of %s to stable store",
             blocknum, &(reln->rd_rel->relname.data[0]));
 
    return (status);
@@ -310,7 +310,7 @@ smgrblindwrt(int16 which,
                                               blkno, buffer);
 
    if (status == SM_FAIL)
-       elog(WARN, "cannot write block %d of %s [%s] blind",
+       elog(ABORT, "cannot write block %d of %s [%s] blind",
             blkno, relstr, dbstr);
 
    pfree(dbstr);
@@ -332,7 +332,7 @@ smgrnblocks(int16 which, Relation reln)
    int         nblocks;
 
    if ((nblocks = (*(smgrsw[which].smgr_nblocks)) (reln)) < 0)
-       elog(WARN, "cannot count blocks for %s",
+       elog(ABORT, "cannot count blocks for %s",
             &(reln->rd_rel->relname.data[0]));
 
    return (nblocks);
@@ -354,7 +354,7 @@ smgrtruncate(int16 which, Relation reln, int nblocks)
    if (smgrsw[which].smgr_truncate)
    {
        if ((newblks = (*(smgrsw[which].smgr_truncate)) (reln, nblocks)) < 0)
-           elog(WARN, "cannot truncate %s to %d blocks",
+           elog(ABORT, "cannot truncate %s to %d blocks",
                 &(reln->rd_rel->relname.data[0]), nblocks);
    }
 
@@ -406,7 +406,7 @@ bool
 smgriswo(int16 smgrno)
 {
    if (smgrno < 0 || smgrno >= NSmgr)
-       elog(WARN, "illegal storage manager number %d", smgrno);
+       elog(ABORT, "illegal storage manager number %d", smgrno);
 
    return (smgrwo[smgrno]);
 }
index dec7c18f14d5e5b92dfea88d42d29658aef36b15..05fbd5ab276921948ce37af85de143b56d95b49a 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgrtype.c,v 1.5 1997/09/08 21:47:42 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgrtype.c,v 1.6 1998/01/05 03:33:35 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -49,7 +49,7 @@ smgrin(char *s)
        if (strcmp(s, StorageManager[i].smgr_name) == 0)
            return ((int2) i);
    }
-   elog(WARN, "smgrin: illegal storage manager name %s", s);
+   elog(ABORT, "smgrin: illegal storage manager name %s", s);
    return 0;
 }
 
@@ -59,7 +59,7 @@ smgrout(int2 i)
    char       *s;
 
    if (i >= NStorageManagers || i < 0)
-       elog(WARN, "Illegal storage manager id %d", i);
+       elog(ABORT, "Illegal storage manager id %d", i);
 
    s = (char *) palloc(strlen(StorageManager[i].smgr_name) + 1);
    strcpy(s, StorageManager[i].smgr_name);
index 0021213365c7125faa9b1a0add0932dbe0fff55b..9c7ed14cd5b03281d866a1a55910b279b439e29a 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/tcop/Attic/aclchk.c,v 1.20 1997/11/25 22:06:08 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/tcop/Attic/aclchk.c,v 1.21 1998/01/05 03:33:40 momjian Exp $
  *
  * NOTES
  *   See acl.h.
@@ -120,7 +120,7 @@ ChangeAcl(char *relname,
     */
    relation = heap_openr(RelationRelationName);
    if (!RelationIsValid(relation))
-       elog(WARN, "ChangeAcl: could not open '%s'??",
+       elog(ABORT, "ChangeAcl: could not open '%s'??",
             RelationRelationName);
    fmgr_info(NameEqualRegProcedure, &relkey[0].sk_func, &relkey[0].sk_nargs);
    relkey[0].sk_argument = NameGetDatum(relname);
@@ -134,7 +134,7 @@ ChangeAcl(char *relname,
    {
        heap_endscan(hsdp);
        heap_close(relation);
-       elog(WARN, "ChangeAcl: class \"%s\" not found",
+       elog(ABORT, "ChangeAcl: class \"%s\" not found",
             relname);
        return;
    }
@@ -205,7 +205,7 @@ get_grosysid(char *groname)
    }
    else
    {
-       elog(WARN, "non-existent group \"%s\"", groname);
+       elog(ABORT, "non-existent group \"%s\"", groname);
    }
    return (id);
 }
@@ -370,7 +370,7 @@ aclcheck(Acl *acl, AclId id, AclIdType idtype, AclMode mode)
        case ACL_IDTYPE_WORLD:
            break;
        default:
-           elog(WARN, "aclcheck: bogus ACL id type: %d", idtype);
+           elog(ABORT, "aclcheck: bogus ACL id type: %d", idtype);
            break;
    }
 
@@ -393,7 +393,7 @@ pg_aclcheck(char *relname, char *usename, AclMode mode)
    htp = SearchSysCacheTuple(USENAME, PointerGetDatum(usename),
                              0, 0, 0);
    if (!HeapTupleIsValid(htp))
-       elog(WARN, "pg_aclcheck: user \"%s\" not found",
+       elog(ABORT, "pg_aclcheck: user \"%s\" not found",
             usename);
    id = (AclId) ((Form_pg_user) GETSTRUCT(htp))->usesysid;
 
@@ -445,9 +445,9 @@ pg_aclcheck(char *relname, char *usename, AclMode mode)
                              0, 0, 0);
    if (!HeapTupleIsValid(htp))
    {
-       elog(WARN, "pg_aclcheck: class \"%s\" not found",
+       elog(ABORT, "pg_aclcheck: class \"%s\" not found",
             relname);
-       /* an elog(WARN) kills us, so no need to return anything. */
+       /* an elog(ABORT) kills us, so no need to return anything. */
    }
    if (!heap_attisnull(htp, Anum_pg_class_relacl))
    {
@@ -528,7 +528,7 @@ pg_ownercheck(char *usename,
    htp = SearchSysCacheTuple(USENAME, PointerGetDatum(usename),
                              0, 0, 0);
    if (!HeapTupleIsValid(htp))
-       elog(WARN, "pg_ownercheck: user \"%s\" not found",
+       elog(ABORT, "pg_ownercheck: user \"%s\" not found",
             usename);
    user_id = (AclId) ((Form_pg_user) GETSTRUCT(htp))->usesysid;
 
@@ -550,30 +550,30 @@ pg_ownercheck(char *usename,
    {
        case OPROID:
            if (!HeapTupleIsValid(htp))
-               elog(WARN, "pg_ownercheck: operator %ld not found",
+               elog(ABORT, "pg_ownercheck: operator %ld not found",
                     PointerGetDatum(value));
            owner_id = ((OperatorTupleForm) GETSTRUCT(htp))->oprowner;
            break;
        case PRONAME:
            if (!HeapTupleIsValid(htp))
-               elog(WARN, "pg_ownercheck: function \"%s\" not found",
+               elog(ABORT, "pg_ownercheck: function \"%s\" not found",
                     value);
            owner_id = ((Form_pg_proc) GETSTRUCT(htp))->proowner;
            break;
        case RELNAME:
            if (!HeapTupleIsValid(htp))
-               elog(WARN, "pg_ownercheck: class \"%s\" not found",
+               elog(ABORT, "pg_ownercheck: class \"%s\" not found",
                     value);
            owner_id = ((Form_pg_class) GETSTRUCT(htp))->relowner;
            break;
        case TYPNAME:
            if (!HeapTupleIsValid(htp))
-               elog(WARN, "pg_ownercheck: type \"%s\" not found",
+               elog(ABORT, "pg_ownercheck: type \"%s\" not found",
                     value);
            owner_id = ((TypeTupleForm) GETSTRUCT(htp))->typowner;
            break;
        default:
-           elog(WARN, "pg_ownercheck: invalid cache id: %d",
+           elog(ABORT, "pg_ownercheck: invalid cache id: %d",
                 cacheid);
            break;
    }
@@ -594,7 +594,7 @@ pg_func_ownercheck(char *usename,
    htp = SearchSysCacheTuple(USENAME, PointerGetDatum(usename),
                              0, 0, 0);
    if (!HeapTupleIsValid(htp))
-       elog(WARN, "pg_func_ownercheck: user \"%s\" not found",
+       elog(ABORT, "pg_func_ownercheck: user \"%s\" not found",
             usename);
    user_id = (AclId) ((Form_pg_user) GETSTRUCT(htp))->usesysid;
 
@@ -635,7 +635,7 @@ pg_aggr_ownercheck(char *usename,
    htp = SearchSysCacheTuple(USENAME, PointerGetDatum(usename),
                              0, 0, 0);
    if (!HeapTupleIsValid(htp))
-       elog(WARN, "pg_aggr_ownercheck: user \"%s\" not found",
+       elog(ABORT, "pg_aggr_ownercheck: user \"%s\" not found",
             usename);
    user_id = (AclId) ((Form_pg_user) GETSTRUCT(htp))->usesysid;
 
index b4fb2ebaec47b31afb8d32c0ea7ca288de7b447c..6a03095699325a6e05d0b8a8d206c5679fc66c64 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.8 1997/12/06 22:57:03 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.9 1998/01/05 03:33:44 momjian Exp $
  *
  * NOTES
  *   This cruft is the server side of PQfn.
@@ -199,7 +199,7 @@ update_fp_info(Oid func_id, struct fp_info * fip)
     * Since the validity of this structure is determined by whether the
     * funcid is OK, we clear the funcid here.  It must not be set to the
     * correct value until we are about to return with a good struct
-    * fp_info, since we can be interrupted (i.e., with an elog(WARN,
+    * fp_info, since we can be interrupted (i.e., with an elog(ABORT,
     * ...)) at any time.
     */
    MemSet((char *) fip, 0, (int) sizeof(struct fp_info));
@@ -209,7 +209,7 @@ update_fp_info(Oid func_id, struct fp_info * fip)
                                   0, 0, 0);
    if (!HeapTupleIsValid(func_htp))
    {
-       elog(WARN, "update_fp_info: cache lookup for function %d failed",
+       elog(ABORT, "update_fp_info: cache lookup for function %d failed",
             func_id);
    }
    pp = (Form_pg_proc) GETSTRUCT(func_htp);
@@ -226,7 +226,7 @@ update_fp_info(Oid func_id, struct fp_info * fip)
                                           0, 0, 0);
            if (!HeapTupleIsValid(type_htp))
            {
-               elog(WARN, "update_fp_info: bad argument type %d for %d",
+               elog(ABORT, "update_fp_info: bad argument type %d for %d",
                     argtypes[i], func_id);
            }
            tp = (TypeTupleForm) GETSTRUCT(type_htp);
@@ -241,7 +241,7 @@ update_fp_info(Oid func_id, struct fp_info * fip)
                                       0, 0, 0);
        if (!HeapTupleIsValid(type_htp))
        {
-           elog(WARN, "update_fp_info: bad return type %d for %d",
+           elog(ABORT, "update_fp_info: bad return type %d for %d",
                 rettype, func_id);
        }
        tp = (TypeTupleForm) GETSTRUCT(type_htp);
@@ -267,7 +267,7 @@ update_fp_info(Oid func_id, struct fp_info * fip)
  *
  * RETURNS:
  *     nothing of significance.
- *     All errors result in elog(WARN,...).
+ *     All errors result in elog(ABORT,...).
  */
 int
 HandleFunctionRequest()
@@ -297,7 +297,7 @@ HandleFunctionRequest()
 
    if (fip->nargs != nargs)
    {
-       elog(WARN, "HandleFunctionRequest: actual arguments (%d) != registered arguments (%d)",
+       elog(ABORT, "HandleFunctionRequest: actual arguments (%d) != registered arguments (%d)",
             nargs, fip->nargs);
    }
 
@@ -328,7 +328,7 @@ HandleFunctionRequest()
                {               /* ... varlena */
                    if (!(p = palloc(argsize + VARHDRSZ)))
                    {
-                       elog(WARN, "HandleFunctionRequest: palloc failed");
+                       elog(ABORT, "HandleFunctionRequest: palloc failed");
                    }
                    VARSIZE(p) = argsize + VARHDRSZ;
                    pq_getnchar(VARDATA(p), 0, argsize);
@@ -338,7 +338,7 @@ HandleFunctionRequest()
                    /* XXX cross our fingers and trust "argsize" */
                    if (!(p = palloc(argsize)))
                    {
-                       elog(WARN, "HandleFunctionRequest: palloc failed");
+                       elog(ABORT, "HandleFunctionRequest: palloc failed");
                    }
                    pq_getnchar(p, 0, argsize);
                }
index 42a6bd88546088bb7d11c9645080db1adc072e0c..64b7e99d9866e0e3abcade02d716c9f4bee1d558 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.57 1997/12/16 15:57:00 thomas Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.58 1998/01/05 03:33:46 momjian Exp $
  *
  * NOTES
  *   this is the "main" module of the postgres backend and
@@ -125,7 +125,7 @@ jmp_buf     Warn_restart;
 sigjmp_buf Warn_restart;
 
 #endif                         /* defined(nextstep) */
-int            InWarn;
+int            InErrorOrAbort;
 
 extern int NBuffers;
 
@@ -728,7 +728,7 @@ pg_exec_query_dest(char *query_string,/* string to execute */
  *     signal handler routines used in PostgresMain()
  *
  *     handle_warn() is used to catch kill(getpid(),1) which
- *     occurs when elog(WARN) is called.
+ *     occurs when elog(ABORT) is called.
  *
  *     quickdie() occurs when signalled by the postmaster.
  *     Some backend has bought the farm,
@@ -774,7 +774,7 @@ die(SIGNAL_ARGS)
 static void
 FloatExceptionHandler(SIGNAL_ARGS)
 {
-   elog(WARN, "floating point exception!"
+   elog(ABORT, "floating point exception!"
        " The last floating point operation either exceeded legal ranges"
        " or was a divide by zero");
 }
@@ -1343,7 +1343,7 @@ PostgresMain(int argc, char *argv[])
     *  so that the slaves signal the master to abort the transaction
     *  rather than calling AbortCurrentTransaction() themselves.
     *
-    *  Note:  elog(WARN) causes a kill(getpid(),1) to occur sending
+    *  Note:  elog(ABORT) causes a kill(getpid(),1) to occur sending
     *         us back here.
     * ----------------
     */
@@ -1352,7 +1352,7 @@ PostgresMain(int argc, char *argv[])
 
    if (sigsetjmp(Warn_restart, 1) != 0)
    {
-       InWarn = 1;
+       InErrorOrAbort = 1;
 
        time(&tim);
 
@@ -1363,7 +1363,7 @@ PostgresMain(int argc, char *argv[])
 
        AbortCurrentTransaction();
    }
-   InWarn = 0;
+   InErrorOrAbort = 0;
 
    /* ----------------
     *  POSTGRES main processing loop begins here
@@ -1372,7 +1372,7 @@ PostgresMain(int argc, char *argv[])
    if (IsUnderPostmaster == false)
    {
        puts("\nPOSTGRES backend interactive interface");
-       puts("$Revision: 1.57 $ $Date: 1997/12/16 15:57:00 $");
+       puts("$Revision: 1.58 $ $Date: 1998/01/05 03:33:46 $");
    }
 
    /* ----------------
@@ -1565,7 +1565,7 @@ PostgresMain(int argc, char *argv[])
                break;
 
            default:
-               elog(WARN, "unknown frontend message was recieved");
+               elog(ABORT, "unknown frontend message was recieved");
        }
 
        /* ----------------
index 360f41303e5fd8258544bf8b13079b6110656dd8..cc7517a5a685d97778cc0bd08d4533a4bf3929cc 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.11 1997/09/18 20:22:05 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/tcop/pquery.c,v 1.12 1998/01/05 03:33:48 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -166,7 +166,7 @@ ProcessPortal(char *portalName,
     */
 
    if (PortalNameIsSpecial(portalName))
-       elog(WARN,
+       elog(ABORT,
             "The portal name %s is reserved for internal use",
             portalName);
 
index 4ee0c2cd4e08880c9ffd3cc674dd432e03180ca0..27b735653e973490b5848784d449f05726dba981 100644 (file)
@@ -9,7 +9,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.33 1998/01/01 05:48:14 thomas Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.34 1998/01/05 03:33:49 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -183,24 +183,24 @@ ProcessUtility(Node * parsetree,
                {
                    relname = strVal(lfirst(arg));
                    if (IsSystemRelationName(relname))
-                       elog(WARN, "class \"%s\" is a system catalog",
+                       elog(ABORT, "class \"%s\" is a system catalog",
                             relname);
                    rel = heap_openr(relname);
                    if (RelationIsValid(rel))
                    {
                        if (stmt->sequence &&
                            rel->rd_rel->relkind != RELKIND_SEQUENCE)
-                           elog(WARN, "Use DROP TABLE to drop table '%s'",
+                           elog(ABORT, "Use DROP TABLE to drop table '%s'",
                                 relname);
                        if (!(stmt->sequence) &&
                            rel->rd_rel->relkind == RELKIND_SEQUENCE)
-                           elog(WARN, "Use DROP SEQUENCE to drop sequence '%s'",
+                           elog(ABORT, "Use DROP SEQUENCE to drop sequence '%s'",
                                 relname);
                        heap_close(rel);
                    }
 #ifndef NO_SECURITY
                    if (!pg_ownercheck(userName, relname, RELNAME))
-                       elog(WARN, "you do not own class \"%s\"",
+                       elog(ABORT, "you do not own class \"%s\"",
                             relname);
 #endif
                }
@@ -263,11 +263,11 @@ ProcessUtility(Node * parsetree,
 
                relname = stmt->relname;
                if (IsSystemRelationName(relname))
-                   elog(WARN, "class \"%s\" is a system catalog",
+                   elog(ABORT, "class \"%s\" is a system catalog",
                         relname);
 #ifndef NO_SECURITY
                if (!pg_ownercheck(userName, relname, RELNAME))
-                   elog(WARN, "you do not own class \"%s\"",
+                   elog(ABORT, "you do not own class \"%s\"",
                  &