From: | Bruce Momjian - CVS <momjian> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql/src/bin/scripts (createuser) |
Date: | 2000-06-09 15:50:53 |
Message-ID: | 200006091550.e59Forc08271@hub.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Date: Friday, June 9, 2000 @ 11:50:53
Author: momjian
Update of /home/projects/pgsql/cvsroot/pgsql/src/bin/scripts
from hub.org:/home/projects/pgsql/tmp/cvs-serv8015/pgsql/src/bin/scripts
Modified Files:
createuser
----------------------------- Log Message -----------------------------
I have large database and with this DB work more users and I very need
more restriction for fretful users. The current PG allow define only
NO-CREATE-DB and NO-CREATE-USER restriction, but for some users I need
NO-CREATE-TABLE and NO-LOCK-TABLE.
This patch add to current code NOCREATETABLE and NOLOCKTABLE feature:
CREATE USER username
[ WITH
[ SYSID uid ]
[ PASSWORD 'password' ] ]
[ CREATEDB | NOCREATEDB ] [ CREATEUSER | NOCREATEUSER ]
-> [ CREATETABLE | NOCREATETABLE ] [ LOCKTABLE | NOLOCKTABLE ]
...etc.
If CREATETABLE or LOCKTABLE is not specific in CREATE USER command,
as default is set CREATETABLE or LOCKTABLE (true).
A user with NOCREATETABLE restriction can't call CREATE TABLE or
SELECT INTO commands, only create temp table is allow for him.
Karel
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian - CVS | 2000-06-09 15:51:02 | pgsql/src/include/catalog (catversion.h pg_attribute.h pg_class.h pg_shadow.h) |
Previous Message | Bruce Momjian - CVS | 2000-06-09 15:50:52 | pgsql/src/bin/initdb (initdb.sh) |