mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Remove 'msg' parameter from convert_tuples_by_name
The message was included as a parameter when this function was added in
dcb2bda9b7
, but I don't think it has ever served any useful purpose.
Let's stop spreading it pointlessly.
Reviewed by Amit Langote and Peter Eisentraut.
Discussion: https://postgr.es/m/20190806224728.GA17233@alvherre.pgsql
This commit is contained in:
@ -1861,8 +1861,7 @@ ExecPartitionCheckEmitError(ResultRelInfo *resultRelInfo,
|
||||
|
||||
old_tupdesc = RelationGetDescr(resultRelInfo->ri_RelationDesc);
|
||||
/* a reverse map */
|
||||
map = convert_tuples_by_name_map_if_req(old_tupdesc, tupdesc,
|
||||
gettext_noop("could not convert row type"));
|
||||
map = convert_tuples_by_name_map_if_req(old_tupdesc, tupdesc);
|
||||
|
||||
/*
|
||||
* Partition-specific slot's tupdesc can't be changed, so allocate a
|
||||
@ -1947,8 +1946,7 @@ ExecConstraints(ResultRelInfo *resultRelInfo,
|
||||
tupdesc = RelationGetDescr(rel);
|
||||
/* a reverse map */
|
||||
map = convert_tuples_by_name_map_if_req(orig_tupdesc,
|
||||
tupdesc,
|
||||
gettext_noop("could not convert row type"));
|
||||
tupdesc);
|
||||
|
||||
/*
|
||||
* Partition-specific slot's tupdesc can't be changed, so
|
||||
@ -1997,8 +1995,7 @@ ExecConstraints(ResultRelInfo *resultRelInfo,
|
||||
tupdesc = RelationGetDescr(rel);
|
||||
/* a reverse map */
|
||||
map = convert_tuples_by_name_map_if_req(old_tupdesc,
|
||||
tupdesc,
|
||||
gettext_noop("could not convert row type"));
|
||||
tupdesc);
|
||||
|
||||
/*
|
||||
* Partition-specific slot's tupdesc can't be changed, so
|
||||
@ -2105,8 +2102,7 @@ ExecWithCheckOptions(WCOKind kind, ResultRelInfo *resultRelInfo,
|
||||
tupdesc = RelationGetDescr(rel);
|
||||
/* a reverse map */
|
||||
map = convert_tuples_by_name_map_if_req(old_tupdesc,
|
||||
tupdesc,
|
||||
gettext_noop("could not convert row type"));
|
||||
tupdesc);
|
||||
|
||||
/*
|
||||
* Partition-specific slot's tupdesc can't be changed,
|
||||
|
Reference in New Issue
Block a user