mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
User and database-specific session defaults for run-time configuration
variables. New commands ALTER DATABASE ... SET and ALTER USER ... SET.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: parsenodes.h,v 1.154 2002/02/26 22:47:10 tgl Exp $
|
||||
* $Id: parsenodes.h,v 1.155 2002/03/01 22:45:18 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -359,7 +359,7 @@ typedef struct DropPLangStmt
|
||||
|
||||
|
||||
/* ----------------------
|
||||
* Create/Alter/Drop User Statements
|
||||
* Create/Alter/Drop User Statements
|
||||
* ----------------------
|
||||
*/
|
||||
typedef struct CreateUserStmt
|
||||
@@ -376,6 +376,14 @@ typedef struct AlterUserStmt
|
||||
List *options; /* List of DefElem nodes */
|
||||
} AlterUserStmt;
|
||||
|
||||
typedef struct AlterUserSetStmt
|
||||
{
|
||||
NodeTag type;
|
||||
char *user;
|
||||
char *variable;
|
||||
List *value;
|
||||
} AlterUserSetStmt;
|
||||
|
||||
typedef struct DropUserStmt
|
||||
{
|
||||
NodeTag type;
|
||||
@@ -687,6 +695,18 @@ typedef struct CreatedbStmt
|
||||
int encoding; /* MULTIBYTE encoding (-1 = use default) */
|
||||
} CreatedbStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Alter Database
|
||||
* ----------------------
|
||||
*/
|
||||
typedef struct AlterDatabaseSetStmt
|
||||
{
|
||||
NodeTag type;
|
||||
char *dbname;
|
||||
char *variable;
|
||||
List *value;
|
||||
} AlterDatabaseSetStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Dropdb Statement
|
||||
* ----------------------
|
||||
|
||||
Reference in New Issue
Block a user