diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-04-30 02:09:07 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-04-30 02:09:07 +0000 |
commit | 4899aaf2d54e241bbfbdcefa8ff247338bc6e194 (patch) | |
tree | 47c11f5cd63ea3d46866866a514381443caed8b4 /src/include/utils/acl.h | |
parent | 87db3ad07883d736b3cfe3fc921ce14c333ea25b (diff) | |
download | postgresql-4899aaf2d54e241bbfbdcefa8ff247338bc6e194.tar.gz postgresql-4899aaf2d54e241bbfbdcefa8ff247338bc6e194.zip |
Add GRANT CONNECTION ON DATABASE, to be used in addition to pg_hba.conf.
Gevik Babakhani
Diffstat (limited to 'src/include/utils/acl.h')
-rw-r--r-- | src/include/utils/acl.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/utils/acl.h b/src/include/utils/acl.h index af6b0ee90c5..c329b6aab81 100644 --- a/src/include/utils/acl.h +++ b/src/include/utils/acl.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/acl.h,v 1.93 2006/03/05 15:59:06 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/acl.h,v 1.94 2006/04/30 02:09:07 momjian Exp $ * * NOTES * An ACL array is simply an array of AclItems, representing the union @@ -135,16 +135,17 @@ typedef ArrayType Acl; #define ACL_USAGE_CHR 'U' #define ACL_CREATE_CHR 'C' #define ACL_CREATE_TEMP_CHR 'T' +#define ACL_CONNECT_CHR 'c' /* string holding all privilege code chars, in order by bitmask position */ -#define ACL_ALL_RIGHTS_STR "arwdRxtXUCT" +#define ACL_ALL_RIGHTS_STR "arwdRxtXUCTc" /* * Bitmasks defining "all rights" for each supported object type */ #define ACL_ALL_RIGHTS_RELATION (ACL_INSERT|ACL_SELECT|ACL_UPDATE|ACL_DELETE|ACL_RULE|ACL_REFERENCES|ACL_TRIGGER) #define ACL_ALL_RIGHTS_SEQUENCE (ACL_USAGE|ACL_SELECT|ACL_UPDATE) -#define ACL_ALL_RIGHTS_DATABASE (ACL_CREATE|ACL_CREATE_TEMP) +#define ACL_ALL_RIGHTS_DATABASE (ACL_CREATE|ACL_CREATE_TEMP|ACL_CONNECT ) #define ACL_ALL_RIGHTS_FUNCTION (ACL_EXECUTE) #define ACL_ALL_RIGHTS_LANGUAGE (ACL_USAGE) #define ACL_ALL_RIGHTS_NAMESPACE (ACL_USAGE|ACL_CREATE) |