pgsql: Rename 'cmd' to 'cmd_name' in CreatePolicyStmt

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Rename 'cmd' to 'cmd_name' in CreatePolicyStmt
Date: 2015-08-21 12:23:38
Message-ID: E1ZSlMB-0005tg-05@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3c99788797e8269ac19c7c8e3fb99dd9613646ea

Modified Files
--------------
src/backend/commands/policy.c | 22 +++++++++++-----------
src/backend/nodes/copyfuncs.c | 2 +-
src/backend/nodes/equalfuncs.c | 2 +-
src/backend/parser/gram.y | 2 +-
src/include/nodes/parsenodes.h | 2 +-
5 files changed, 15 insertions(+), 15 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2015-08-21 12:23:39 pgsql: Rename 'cmd' to 'cmd_name' in CreatePolicyStmt
Previous Message Peter Eisentraut 2015-08-21 02:47:46 pgsql: doc: Whitespace and formatting fixes