mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Change some internal error messages to elogs
Author: Paul Jungwirth <pj@illuminatedcomputing.com> Reviewed-by: Chapman Flack <chap@anastigmatix.net> Discussion: https://www.postgresql.org/message-id/flat/007ef255-35ef-fd26-679c-f97e7a7f30c2@illuminatedcomputing.com
This commit is contained in:
@ -1345,9 +1345,7 @@ range_agg_transfn(PG_FUNCTION_ARGS)
|
||||
|
||||
rngtypoid = get_fn_expr_argtype(fcinfo->flinfo, 1);
|
||||
if (!type_is_range(rngtypoid))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_DATATYPE_MISMATCH),
|
||||
errmsg("range_agg must be called with a range")));
|
||||
elog(ERROR, "range_agg must be called with a range");
|
||||
|
||||
if (PG_ARGISNULL(0))
|
||||
state = initArrayResult(rngtypoid, aggContext, false);
|
||||
@ -1416,9 +1414,7 @@ multirange_intersect_agg_transfn(PG_FUNCTION_ARGS)
|
||||
|
||||
mltrngtypoid = get_fn_expr_argtype(fcinfo->flinfo, 1);
|
||||
if (!type_is_multirange(mltrngtypoid))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_DATATYPE_MISMATCH),
|
||||
errmsg("range_intersect_agg must be called with a multirange")));
|
||||
elog(ERROR, "range_intersect_agg must be called with a multirange");
|
||||
|
||||
typcache = multirange_get_typcache(fcinfo, mltrngtypoid);
|
||||
|
||||
|
@ -1211,7 +1211,7 @@ range_intersect_agg_transfn(PG_FUNCTION_ARGS)
|
||||
|
||||
rngtypoid = get_fn_expr_argtype(fcinfo->flinfo, 1);
|
||||
if (!type_is_range(rngtypoid))
|
||||
ereport(ERROR, (errmsg("range_intersect_agg must be called with a range")));
|
||||
elog(ERROR, "range_intersect_agg must be called with a range");
|
||||
|
||||
typcache = range_get_typcache(fcinfo, rngtypoid);
|
||||
|
||||
|
Reference in New Issue
Block a user