Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
9f53cfd9
Commit
9f53cfd9
authored
Sep 23, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments explaining clauses used by CREATE ROLE but not ALTER.
parent
86044a9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
src/backend/parser/gram.y
src/backend/parser/gram.y
+15
-13
No files found.
src/backend/parser/gram.y
View file @
9f53cfd9
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.51
0 2005/09/05 23:50:48 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.51
1 2005/09/23 22:25:25 momjian
Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -623,10 +623,6 @@ OptRoleElem:
$$ = makeDefElem("unencryptedPassword",
(Node *)makeString($3));
}
| SYSID Iconst
{
$$ = makeDefElem("sysid", (Node *)makeInteger($2));
}
| SUPERUSER_P
{
$$ = makeDefElem("superuser", (Node *)makeInteger(TRUE));
...
...
@@ -680,17 +676,19 @@ OptRoleElem:
{
$$ = makeDefElem("connectionlimit", (Node *)makeInteger($3));
}
|
IN_P ROLE name_li
st
|
VALID UNTIL Scon
st
{
$$ = makeDefElem("
addroleto", (Node *)$3
);
$$ = makeDefElem("
validUntil", (Node *)makeString($3)
);
}
| IN_P GROUP_P name_list
/* Supported but not documented for roles, for use by ALTER GROUP. */
| USER name_list
{
$$ = makeDefElem("
addroleto", (Node *)$3
);
$$ = makeDefElem("
rolemembers", (Node *)$2
);
}
| VALID UNTIL Sconst
/* The following are not supported by ALTER ROLE/USER/GROUP */
| SYSID Iconst
{
$$ = makeDefElem("
validUntil", (Node *)makeString($3
));
$$ = makeDefElem("
sysid", (Node *)makeInteger($2
));
}
| ADMIN name_list
{
...
...
@@ -700,9 +698,13 @@ OptRoleElem:
{
$$ = makeDefElem("rolemembers", (Node *)$2);
}
|
USER
name_list
|
IN_P ROLE
name_list
{
$$ = makeDefElem("rolemembers", (Node *)$2);
$$ = makeDefElem("addroleto", (Node *)$3);
}
| IN_P GROUP_P name_list
{
$$ = makeDefElem("addroleto", (Node *)$3);
}
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment