Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
user.h44 linesDownload Raw Back to commands
1/*-------------------------------------------------------------------------2 *3 * user.h4 *	  Commands for manipulating roles (formerly called users).5 *6 *7 * src/include/commands/user.h8 *9 *-------------------------------------------------------------------------10 */11#ifndef USER_H12#define USER_H13 14#include "catalog/objectaddress.h"15#include "libpq/crypt.h"16#include "nodes/parsenodes.h"17#include "parser/parse_node.h"18#include "utils/guc.h"19 20/* GUCs */21extern PGDLLIMPORT int Password_encryption; /* values from enum PasswordType */22extern PGDLLIMPORT char *createrole_self_grant;23 24/* Hook to check passwords in CreateRole() and AlterRole() */25typedef void (*check_password_hook_type) (const char *username, const char *shadow_pass, PasswordType password_type, Datum validuntil_time, bool validuntil_null);26 27extern PGDLLIMPORT check_password_hook_type check_password_hook;28 29extern Oid	CreateRole(ParseState *pstate, CreateRoleStmt *stmt);30extern Oid	AlterRole(ParseState *pstate, AlterRoleStmt *stmt);31extern Oid	AlterRoleSet(AlterRoleSetStmt *stmt);32extern void DropRole(DropRoleStmt *stmt);33extern void GrantRole(ParseState *pstate, GrantRoleStmt *stmt);34extern ObjectAddress RenameRole(const char *oldname, const char *newname);35extern void DropOwnedObjects(DropOwnedStmt *stmt);36extern void ReassignOwnedObjects(ReassignOwnedStmt *stmt);37extern List *roleSpecsToIds(List *memberNames);38 39extern bool check_createrole_self_grant(char **newval, void **extra,40										GucSource source);41extern void assign_createrole_self_grant(const char *newval, void *extra);42 43#endif							/* USER_H */44 
codekingpro/portable-devtools · Team Ai