The result is already of the correct type, so these casts don't do
anything.
Reviewed-by: Nathan Bossart <[email protected]>
Reviewed-by: Tender Wang <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/
637eeea8-5663-460b-a114-
39572c0f6c6e%40eisentraut.org
* Initialize our fabricated parse node by copying the original
* one, then resetting fields that we pass separately.
*/
- childStmt = (CreateTrigStmt *) copyObject(stmt);
+ childStmt = copyObject(stmt);
childStmt->funcname = NIL;
childStmt->whenClause = NULL;
case T_SortGroupClause:
case T_CTESearchClause:
case T_MergeSupportFunc:
- return (Node *) copyObject(node);
+ return copyObject(node);
case T_WithCheckOption:
{
WithCheckOption *wco = (WithCheckOption *) node;
break;
case T_PartitionPruneStepCombine:
/* no expression sub-nodes */
- return (Node *) copyObject(node);
+ return copyObject(node);
case T_JoinExpr:
{
JoinExpr *join = (JoinExpr *) node;
break;
case REPLACEVARS_CHANGE_VARNO:
- var = (Var *) copyObject(var);
+ var = copyObject(var);
var->varno = rcon->nomatch_varno;
/* we leave the syntactic referent alone */
return (Node *) var;