Rename 'cmd' to 'cmd_name' in CreatePolicyStmt
authorStephen Frost <sfrost@snowman.net>
Fri, 21 Aug 2015 12:22:29 +0000 (08:22 -0400)
committerStephen Frost <sfrost@snowman.net>
Fri, 21 Aug 2015 12:22:29 +0000 (08:22 -0400)
commit49f9a2831b8c5c8941eec9baa5d44b471971704e
tree467ad76baf328bc61bff0799c5f9cc162a5f0466
parent0070fd8d3c1c8a733c041bfcedd41e38cee0a963
Rename 'cmd' to 'cmd_name' in CreatePolicyStmt

To avoid confusion, rename CreatePolicyStmt's 'cmd' to 'cmd_name',
parse_policy_command's 'cmd' to 'polcmd', and AlterPolicy's 'cmd_datum'
to 'polcmd_datum', per discussion with Noah and as a follow-up to his
correction of copynodes/equalnodes handling of the CreatePolicyStmt
'cmd' field.

Back-patch to 9.5 where the CreatePolicyStmt was introduced, as we
are still only in alpha.
src/backend/commands/policy.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/include/nodes/parsenodes.h