mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
Change elog(WARN) to elog(ERROR) and elog(ABORT).
This commit is contained in:
@ -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;
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user