sensibly, even though we don't document it.
/*
* ALTER ROLE
+ *
+ * Note: the rolemembers option accepted here is intended to support the
+ * backwards-compatible ALTER GROUP syntax. Although it will work to say
+ * "ALTER ROLE role ROLE rolenames", we don't document it.
*/
void
AlterRole(AlterRoleStmt *stmt)
{
AlterRoleStmt *n = makeNode(AlterRoleStmt);
n->role = $3;
+ n->action = +1; /* add, if there are members */
n->options = $5;
$$ = (Node *)n;
}
{
AlterRoleStmt *n = makeNode(AlterRoleStmt);
n->role = $3;
+ n->action = +1; /* add, if there are members */
n->options = $5;
$$ = (Node *)n;
}