aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands/user.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-10-21 19:46:45 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-10-21 19:46:45 +0000
commite16f04cf72d7000e1b97e500fcbb4a94013ed139 (patch)
treecc4b3e68d0bb530cd82033b6111222e91fd8079e /src/include/commands/user.h
parentde9d7f4bd5e1fc72c9e5a0381c6c4c95d6f7bed1 (diff)
downloadpostgresql-e16f04cf72d7000e1b97e500fcbb4a94013ed139.tar.gz
postgresql-e16f04cf72d7000e1b97e500fcbb4a94013ed139.zip
Make CREATE/ALTER/DROP USER/GROUP transaction-safe, or at least pretty
nearly so, by postponing write of flat password file until transaction commit.
Diffstat (limited to 'src/include/commands/user.h')
-rw-r--r--src/include/commands/user.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/commands/user.h b/src/include/commands/user.h
index 37d2c0f9b13..87481409882 100644
--- a/src/include/commands/user.h
+++ b/src/include/commands/user.h
@@ -1,9 +1,10 @@
/*-------------------------------------------------------------------------
*
* user.h
+ * Commands for manipulating users and groups.
*
*
- * $Id: user.h,v 1.19 2002/09/04 20:31:42 momjian Exp $
+ * $Id: user.h,v 1.20 2002/10/21 19:46:45 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -13,13 +14,10 @@
#include "fmgr.h"
#include "nodes/parsenodes.h"
-#define PWD_FILE "pg_pwd"
-
-#define USER_GROUP_FILE "pg_group"
-
extern char *group_getfilename(void);
extern char *user_getfilename(void);
+
extern void CreateUser(CreateUserStmt *stmt);
extern void AlterUser(AlterUserStmt *stmt);
extern void AlterUserSet(AlterUserSetStmt *stmt);
@@ -31,4 +29,6 @@ extern void DropGroup(DropGroupStmt *stmt);
extern Datum update_pg_pwd_and_pg_group(PG_FUNCTION_ARGS);
+extern void AtEOXact_UpdatePasswordFile(bool isCommit);
+
#endif /* USER_H */