gooderp18绿色标准版
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

38 行
1.3KB

  1. /*-------------------------------------------------------------------------
  2. *
  3. * user.h
  4. * Commands for manipulating roles (formerly called users).
  5. *
  6. *
  7. * src/include/commands/user.h
  8. *
  9. *-------------------------------------------------------------------------
  10. */
  11. #ifndef USER_H
  12. #define USER_H
  13. #include "catalog/objectaddress.h"
  14. #include "libpq/crypt.h"
  15. #include "nodes/parsenodes.h"
  16. #include "parser/parse_node.h"
  17. /* GUC. Is actually of type PasswordType. */
  18. extern int Password_encryption;
  19. /* Hook to check passwords in CreateRole() and AlterRole() */
  20. typedef void (*check_password_hook_type) (const char *username, const char *shadow_pass, PasswordType password_type, Datum validuntil_time, bool validuntil_null);
  21. extern PGDLLIMPORT check_password_hook_type check_password_hook;
  22. extern Oid CreateRole(ParseState *pstate, CreateRoleStmt *stmt);
  23. extern Oid AlterRole(AlterRoleStmt *stmt);
  24. extern Oid AlterRoleSet(AlterRoleSetStmt *stmt);
  25. extern void DropRole(DropRoleStmt *stmt);
  26. extern void GrantRole(GrantRoleStmt *stmt);
  27. extern ObjectAddress RenameRole(const char *oldname, const char *newname);
  28. extern void DropOwnedObjects(DropOwnedStmt *stmt);
  29. extern void ReassignOwnedObjects(ReassignOwnedStmt *stmt);
  30. extern List *roleSpecsToIds(List *memberNames);
  31. #endif /* USER_H */
上海开阖软件有限公司 沪ICP备12045867号-1