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/nodes/parsenodes.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/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 2da0f6605dd..a0a31be51be 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.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/nodes/parsenodes.h,v 1.308 2006/04/27 00:33:46 momjian Exp $ + * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.309 2006/04/30 02:09:07 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -57,7 +57,8 @@ typedef uint32 AclMode; /* a bitmask of privilege bits */ #define ACL_USAGE (1<<8) /* for languages and namespaces */ #define ACL_CREATE (1<<9) /* for namespaces and databases */ #define ACL_CREATE_TEMP (1<<10) /* for databases */ -#define N_ACL_RIGHTS 11 /* 1 plus the last 1<<x */ +#define ACL_CONNECT (1<<11) /* for database connection privilege */ +#define N_ACL_RIGHTS 12 /* 1 plus the last 1<<x */ #define ACL_NO_RIGHTS 0 /* Currently, SELECT ... FOR UPDATE/FOR SHARE requires UPDATE privileges */ #define ACL_SELECT_FOR_UPDATE ACL_UPDATE |