Skip to content

Instantly share code, notes, and snippets.

@krk
Created June 27, 2017 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krk/804b54d37278590eb3ad11fc3375e21c to your computer and use it in GitHub Desktop.
Save krk/804b54d37278590eb3ad11fc3375e21c to your computer and use it in GitHub Desktop.
GrantStmt: GRANT privileges ON privilege_target TO grantee_list
opt_grant_grant_option
{
GrantStmt *n = makeNode(GrantStmt);
n->is_grant = true;
n->privileges = $2;
n->targtype = ($4)->targtype;
n->objtype = ($4)->objtype;
n->objects = ($4)->objs;
n->grantees = $6;
n->grant_option = $7;
$$ = (Node*)n;
}
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment