mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
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.
This commit is contained in:
@@ -2039,7 +2039,7 @@ typedef struct CreatePolicyStmt
|
||||
NodeTag type;
|
||||
char *policy_name; /* Policy's name */
|
||||
RangeVar *table; /* the table name the policy applies to */
|
||||
char *cmd; /* the command name the policy applies to */
|
||||
char *cmd_name; /* the command name the policy applies to */
|
||||
List *roles; /* the roles associated with the policy */
|
||||
Node *qual; /* the policy's condition */
|
||||
Node *with_check; /* the policy's WITH CHECK condition. */
|
||||
|
||||
Reference in New Issue
Block a user