From 4ceb2d0cb619bba2ecbf5d72a10c8fa7ba321366 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 14 Jan 2000 22:11:38 +0000 Subject: * User management commands no longer user pg_exec_query_dest -> more robust * Let unprivileged users change their own passwords. * The password is now an Sconst in the parser, which better reflects its text datatype and also forces users to quote them. * If your password is NULL you won't be written to the password file, meaning you can't connect until you have a password set up (if you use password authentication). * When you drop a user that owns a database you get an error. The database is not gone. --- src/include/commands/copy.h | 4 ++-- src/include/commands/user.h | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/include/commands') diff --git a/src/include/commands/copy.h b/src/include/commands/copy.h index 1f2af72122..4560cd3672 100644 --- a/src/include/commands/copy.h +++ b/src/include/commands/copy.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: copy.h,v 1.7 1999/12/14 00:08:19 momjian Exp $ + * $Id: copy.h,v 1.8 2000/01/14 22:11:37 petere Exp $ * *------------------------------------------------------------------------- */ @@ -15,6 +15,6 @@ void DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe, - char *filename, char *delim, char *null_print, int fileumask); + char *filename, char *delim, char *null_print); #endif /* COPY_H */ diff --git a/src/include/commands/user.h b/src/include/commands/user.h index 036f157682..6a52fe613d 100644 --- a/src/include/commands/user.h +++ b/src/include/commands/user.h @@ -11,15 +11,15 @@ #define USER_H #include "nodes/parsenodes.h" -#include "tcop/dest.h" +#include "access/htup.h" -extern void DefineUser(CreateUserStmt *stmt, CommandDest); -extern void AlterUser(AlterUserStmt *stmt, CommandDest); -extern void RemoveUser(char *user, CommandDest); +extern void CreateUser(CreateUserStmt *stmt); +extern void AlterUser(AlterUserStmt *stmt); +extern void DropUser(DropUserStmt *stmt); -extern void CreateGroup(CreateGroupStmt *stmt, CommandDest dest); -extern void AlterGroup(AlterGroupStmt *stmt, CommandDest dest); -extern void DropGroup(DropGroupStmt *stmt, CommandDest dest); +extern void CreateGroup(CreateGroupStmt *stmt); +extern void AlterGroup(AlterGroupStmt *stmt, const char * tag); +extern void DropGroup(DropGroupStmt *stmt); extern HeapTuple update_pg_pwd(void); -- cgit v1.2.1