Rename 'cmd' to 'cmd_name' in CreatePolicyStmt
Stephen Frost <sfrost@snowman.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/policy.c | modified | +11 −11 |
| src/backend/nodes/copyfuncs.c | modified | +1 −1 |
| src/backend/nodes/equalfuncs.c | modified | +1 −1 |
| src/backend/parser/gram.y | modified | +1 −1 |
| src/include/nodes/parsenodes.h | modified | +1 −1 |