Use the new castNode() macro in a number of places.

Andres Freund <andres@anarazel.de>

Commit: 9ba8a9ce4548bb34b7136b7463a61b2c499979a3
Author: Andres Freund <andres@anarazel.de>
Date: 2017-01-27T00:47:03Z
Releases: 10.0
Use the new castNode() macro in a number of places.

This is far from a pervasive conversion, but it's a good starting
point.

Author: Peter Eisentraut, with some minor changes by me
Reviewed-By: Tom Lane
Discussion: https://postgr.es/m/c5d387d9-3440-f5e0-f9d4-71d53b9fbe52@2ndquadrant.com

Files

PathChange+/−
contrib/pg_stat_statements/pg_stat_statements.c modified +4 −6
contrib/postgres_fdw/deparse.c modified +1 −4
contrib/postgres_fdw/postgres_fdw.c modified +4 −8
src/backend/catalog/pg_proc.c modified +1 −2
src/backend/commands/aggregatecmds.c modified +2 −2
src/backend/commands/analyze.c modified +3 −3
src/backend/commands/async.c modified +4 −4
src/backend/commands/collationcmds.c modified +1 −1
src/backend/commands/constraint.c modified +1 −1
src/backend/commands/copy.c modified +6 −6
src/backend/commands/createas.c modified +2 −3
src/backend/commands/dropcmds.c modified +1 −3
src/backend/commands/explain.c modified +7 −9
src/backend/commands/functioncmds.c modified +2 −5
src/backend/commands/matview.c modified +1 −2
src/backend/commands/opclasscmds.c modified +3 −6
src/backend/commands/tablecmds.c modified +5 −11
src/backend/commands/trigger.c modified +1 −3
src/backend/commands/user.c modified +1 −3
src/backend/commands/view.c modified +1 −2
src/backend/executor/execAmi.c modified +4 −3
src/backend/executor/execQual.c modified +2 −4
src/backend/executor/execTuples.c modified +1 −4
src/backend/executor/functions.c modified +2 −4
src/backend/executor/nodeAgg.c modified +3 −5
src/backend/executor/nodeCtescan.c modified +1 −2
src/backend/executor/nodeCustom.c modified +2 −2
src/backend/executor/nodeHashjoin.c modified +2 −5
src/backend/executor/nodeLockRows.c modified +1 −3
src/backend/executor/nodeModifyTable.c modified +1 −3
src/backend/executor/nodeSubplan.c modified +5 −10
src/backend/executor/nodeWorktablescan.c modified +2 −2

Discussion