mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
From: todd brandys <brandys@eng3.hep.uiuc.edu>
An extension to the code to allow for a pg_password authentication database that is *seperate* from the system password file
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: parsenodes.h,v 1.35 1997/11/24 05:09:50 momjian Exp $
|
||||
* $Id: parsenodes.h,v 1.36 1997/12/04 00:28:03 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -197,6 +197,30 @@ typedef struct DropPLangStmt
|
||||
} DropPLangStmt;
|
||||
|
||||
|
||||
/* ----------------------
|
||||
* Create/Alter/Drop User Statements
|
||||
* ----------------------
|
||||
*/
|
||||
typedef struct CreateUserStmt
|
||||
{
|
||||
NodeTag type;
|
||||
char* user; /* PostgreSQL user login */
|
||||
char* password; /* PostgreSQL user password */
|
||||
bool* createdb; /* Can the user create databases? */
|
||||
bool* createuser; /* Can this user create users? */
|
||||
List* groupElts; /* The groups the user is a member of */
|
||||
char* validUntil; /* The time the login is valid until */
|
||||
} CreateUserStmt;
|
||||
|
||||
typedef CreateUserStmt AlterUserStmt;
|
||||
|
||||
typedef struct DropUserStmt
|
||||
{
|
||||
NodeTag type;
|
||||
char* user; /* PostgreSQL user login */
|
||||
} DropUserStmt;
|
||||
|
||||
|
||||
/* ----------------------
|
||||
* Create SEQUENCE Statement
|
||||
* ----------------------
|
||||
|
||||
Reference in New Issue
Block a user