1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Make usecatupd disabled for normal users, and allow normal users to

update temp tables with this setting.
This commit is contained in:
Bruce Momjian
1999-07-30 18:09:49 +00:00
parent 04578a9180
commit 44763a2b23
3 changed files with 6 additions and 5 deletions

View File

@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: user.c,v 1.32 1999/07/17 20:16:54 momjian Exp $
* $Id: user.c,v 1.33 1999/07/30 18:09:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -169,7 +169,7 @@ DefineUser(CreateUserStmt *stmt, CommandDest dest)
snprintf(sql, SQL_LENGTH,
"insert into %s (usename,usesysid,usecreatedb,usetrace,"
"usesuper,usecatupd,passwd,valuntil) "
"values('%s',%d,'%c','t','%c','t',%s%s%s,%s%s%s)",
"values('%s',%d,'%c','f','%c','f',%s%s%s,%s%s%s)",
ShadowRelationName,
stmt->user,
max_id + 1,