mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Create an ALTER DEFAULT PRIVILEGES command, which allows users to adjust
the privileges that will be applied to subsequently-created objects. Such adjustments are always per owning role, and can be restricted to objects created in particular schemas too. A notable benefit is that users can override the traditional default privilege settings, eg, the PUBLIC EXECUTE privilege traditionally granted by default for functions. Petr Jelinek
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.402 2009/09/22 23:43:41 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.403 2009/10/05 19:24:48 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1259,6 +1259,17 @@ typedef struct GrantRoleStmt
|
||||
DropBehavior behavior; /* drop behavior (for REVOKE) */
|
||||
} GrantRoleStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Alter Default Privileges Statement
|
||||
* ----------------------
|
||||
*/
|
||||
typedef struct AlterDefaultPrivilegesStmt
|
||||
{
|
||||
NodeTag type;
|
||||
List *options; /* list of DefElem */
|
||||
GrantStmt *action; /* GRANT/REVOKE action (with objects=NIL) */
|
||||
} AlterDefaultPrivilegesStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Copy Statement
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user