mirror of
https://github.com/postgres/postgres.git
synced 2025-09-11 00:12:06 +03:00
Error message editing in backend/optimizer, backend/rewrite.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/subselect.c,v 1.78 2003/06/25 21:30:30 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/subselect.c,v 1.79 2003/07/25 00:01:08 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -359,7 +359,7 @@ make_subplan(SubLink *slink, List *lefthand, bool isTopQual)
|
||||
Assert(!te->resdom->resjunk);
|
||||
arraytype = get_array_type(te->resdom->restype);
|
||||
if (!OidIsValid(arraytype))
|
||||
elog(ERROR, "Cannot find array type for datatype %s",
|
||||
elog(ERROR, "could not find array type for datatype %s",
|
||||
format_type_be(te->resdom->restype));
|
||||
prm = generate_new_param(arraytype, -1);
|
||||
node->setParam = makeListi1(prm->paramid);
|
||||
@@ -1012,8 +1012,8 @@ finalize_plan(Plan *plan, List *rtable,
|
||||
break;
|
||||
|
||||
default:
|
||||
elog(ERROR, "finalize_plan: node %d unsupported",
|
||||
nodeTag(plan));
|
||||
elog(ERROR, "unrecognized node type: %d",
|
||||
(int) nodeTag(plan));
|
||||
}
|
||||
|
||||
/* Process left and right child plans, if any */
|
||||
@@ -1032,7 +1032,7 @@ finalize_plan(Plan *plan, List *rtable,
|
||||
/* Now we have all the paramids */
|
||||
|
||||
if (!bms_is_subset(context.paramids, valid_params))
|
||||
elog(ERROR, "finalize_plan: plan shouldn't reference subplan's variable");
|
||||
elog(ERROR, "plan should not reference subplan's variable");
|
||||
|
||||
plan->extParam = bms_intersect(context.paramids, outer_params);
|
||||
plan->allParam = context.paramids;
|
||||
|
Reference in New Issue
Block a user