diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-10-12 23:41:45 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-10-12 23:41:45 +0000 |
| commit | 5ec1341136941b538d07f54b2a6d7554857f8dc3 (patch) | |
| tree | ed2a54279fe65ce16af4e9e4f60e8822caee6c04 /src/backend/parser | |
| parent | 11ca04b4b71dd5bebafc97eefe96614873158f87 (diff) | |
| download | postgresql-5ec1341136941b538d07f54b2a6d7554857f8dc3.tar.gz | |
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.
Diffstat (limited to 'src/backend/parser')
| -rw-r--r-- | src/backend/parser/gram.y | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index 4f50287643..17463ee3b8 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -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; } ; |
