mirror of
https://github.com/postgres/postgres.git
synced 2025-09-05 02:22:28 +03:00
Use plurals (TABLES, FUNCTIONS, etc) in ALTER DEFAULT PRIVILEGES. We have
the keywords as a consequence of the GRANT ALL patch, so we might as well use them and make the ALTER commands read more naturally.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.684 2009/10/12 20:39:41 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.685 2009/10/12 23:41:43 tgl Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
@@ -4676,8 +4676,8 @@ DefACLOption:
|
||||
;
|
||||
|
||||
/*
|
||||
* This should match GRANT/REVOKE, except that target objects are missing
|
||||
* and we only allow a subset of object types.
|
||||
* This should match GRANT/REVOKE, except that individual target objects
|
||||
* are not mentioned and we only allow a subset of object types.
|
||||
*/
|
||||
DefACLAction:
|
||||
GRANT privileges ON defacl_privilege_target TO grantee_list
|
||||
@@ -4724,9 +4724,9 @@ DefACLAction:
|
||||
;
|
||||
|
||||
defacl_privilege_target:
|
||||
TABLE { $$ = ACL_OBJECT_RELATION; }
|
||||
| FUNCTION { $$ = ACL_OBJECT_FUNCTION; }
|
||||
| SEQUENCE { $$ = ACL_OBJECT_SEQUENCE; }
|
||||
TABLES { $$ = ACL_OBJECT_RELATION; }
|
||||
| FUNCTIONS { $$ = ACL_OBJECT_FUNCTION; }
|
||||
| SEQUENCES { $$ = ACL_OBJECT_SEQUENCE; }
|
||||
;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user